1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,211696,755673,e=>{"use strict";var t=e.i(136263),a=e.i(912788),r=e.i(225970);let i=(0,r.createServerReference)("400d22920a894a43d28dbb30bd900d2948941f6bf1",r.callServer,void 0,r.findSourceMapURL,"createProject");e.s(["createProject",0,i],755673);let l=(0,r.createServerReference)("402954b5aa05d320b68dd626f24ecf08f2ab616707",r.callServer,void 0,r.findSourceMapURL,"deleteProject"),n=(0,r.createServerReference)("403a6f78bb3090eb792261704f85650427984d70a4",r.callServer,void 0,r.findSourceMapURL,"listProjects"),s=(0,r.createServerReference)("40cddeb48c7984a5394cfca76ec8d8266f6914c8fd",r.callServer,void 0,r.findSourceMapURL,"listProjectsPage"),o=(0,r.createServerReference)("609b7b81d02fcc7e99c937fc7e916fa3c1dac95c54",r.callServer,void 0,r.findSourceMapURL,"renameProject");var c=e.i(683399),u=e.i(133719);e.s(["useProjectPages",0,function(){let{pages:e,isLoading:a,error:r,isLoadingMore:n,hasMore:d,loadMore:p,refresh:h,mutate:f}=(0,c.useCursorPages)(u.PROJECT_PAGES_KEY,e=>s({limit:24,...e?{cursor:e}:{}})),g=(0,t.useMemo)(()=>e.flatMap(e=>e.projects),[e]),m=e=>f(t=>t?.map(t=>({...t,projects:e(t.projects)})),{revalidate:!1});async function x(e){let t=await i(e);return await h(),t}async function b(e,t){await m(a=>a.map(a=>a.project_id===e?{...a,name:t}:a)),await (0,u.patchProject)(e,e=>({...e,name:t}));try{let a=await o(e,t);await (0,u.patchProject)(e,()=>a),await m(t=>t.map(t=>t.project_id===e?a:t))}catch(t){throw await Promise.all([h(),(0,u.revalidateProject)(e)]),t}}async function v(e){await m(t=>t.filter(t=>t.project_id!==e));try{await l(e)}catch(e){throw await h(),e}await (0,u.forgetProject)(e)}return{projects:g,isLoading:a,error:r,isLoadingMore:n,hasMore:d,loadMore:p,refresh:h,create:x,rename:b,remove:v}},"useProjects",0,function(e=100,{enabled:t=!0,retryContinuously:r=!1}={}){let{data:s,isLoading:c,error:d,mutate:p}=(0,a.default)(t?[u.PROJECTS_KEY,e]:null,()=>n(e),r?{revalidateOnFocus:!0,onErrorRetry:(e,t,a,r,i)=>{setTimeout(()=>r(i),15e3)}}:void 0),h=s?.projects??[];function f(e){return{projects:e}}async function g(e,t){let a=f(h.map(a=>a.project_id===e?{...a,name:t}:a));await (0,u.patchProject)(e,e=>({...e,name:t}));try{await p(async()=>{let a=await o(e,t);return await (0,u.patchProject)(e,()=>a),f(h.map(t=>t.project_id===e?a:t))},{optimisticData:a,rollbackOnError:!0})}catch(t){throw await (0,u.revalidateProject)(e),t}}async function m(e){let t=f(h.filter(t=>t.project_id!==e));await p(async()=>(await l(e),t),{optimisticData:t,rollbackOnError:!0,revalidate:!1}),await (0,u.forgetProject)(e)}return{projects:h,isLoading:c,error:d,create:async function(e){let t=await i(e);return await p(),t},rename:g,remove:m}}],211696)},342534,e=>{"use strict";var t=e.i(52644),a=e.i(2829),r=e.i(660948),i=e.i(635356),l=e.i(378833),n=e.i(965803),s=e.i(997758),o=e.i(106510),c=e.i(745786),u=e.i(792402),d=e.i(136263),p=e.i(392739),h=e.i(337928),f=e.i(384214),g=e.i(926368),m=e.i(437102);let x=[{value:"subscription",label:"Subscription"},{value:"credits",label:"Credits"}];function b(e,t="billing"){return`${t}-tab-${e}`}function v(e,t="billing"){return`${t}-panel-${e}`}function y({value:e,onChange:a,tabs:r=x.map(e=>e.value),idPrefix:l="billing",className:n}){let s=(0,d.useRef)({}),o=x.filter(e=>r.includes(e.value)),c=o.some(t=>t.value===e)?e:o[0]?.value;return(0,d.useEffect)(()=>{void 0!==c&&c!==e&&a(c)},[c,e,a]),(0,t.jsx)("div",{role:"tablist","aria-label":"Ways to pay",className:(0,i.cn)("flex w-[420px] max-w-full justify-center gap-0.5 border-primary-200 border-b",n),children:o.map((e,r)=>{let n=e.value===c;return(0,t.jsxs)("button",{ref:t=>{s.current[e.value]=t??void 0},type:"button",role:"tab","aria-selected":n,tabIndex:n?0:-1,id:b(e.value,l),"aria-controls":v(e.value,l),className:"-mb-px flex w-[209px] max-w-[50%] cursor-pointer flex-col items-center gap-1 pt-1 focus-visible:outline-2 focus-visible:outline-primary-300 focus-visible:outline-offset-2",onClick:()=>a(e.value),onKeyDown:e=>(function(e,t){let r=o.length-1,i="ArrowRight"===e.key?(t+1)%o.length:"ArrowLeft"===e.key?(t-1+o.length)%o.length:"Home"===e.key?0:"End"===e.key?r:null;if(null===i)return;e.preventDefault();let l=o[i].value;a(l),s.current[l]?.focus()})(e,r),children:[(0,t.jsx)("span",{className:(0,i.cn)("flex h-10 w-full items-center justify-center rounded-xs px-2 font-medium text-copy-16 transition-colors duration-200 ease-out-strong motion-reduce:transition-none",n?"text-primary-900":"text-primary-500 hover-focus:bg-primary-200 hover-focus:text-primary-900"),children:e.label}
1),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,i.cn)("h-0.5 w-full",n?"bg-primary-900":"bg-transparent")})]},e.value)})})}let w={duration:.32,ease:g.EASE_OUT_STRONG};function S(e){return x.findIndex(t=>t.value===(e??"subscription"))}function j({panels:e,active:a,className:r,children:l}){let n=!!(0,c.useReducedMotion)(),s=S(a);return(0,t.jsx)("div",{className:(0,i.cn)("grid w-full [&>*]:col-start-1 [&>*]:row-start-1",r),children:e.map(e=>{let r=e===a;return(0,t.jsx)(o.motion.div,{initial:!1,animate:r?{x:0,opacity:1}:{x:n?0:(S(e)-s)*48,opacity:0},transition:w,"aria-hidden":!r,inert:!r,className:"flex w-full flex-col items-center",children:l(e)},e)})})}var _=e.i(730910),k=e.i(650180),P=e.i(843637),C=e.i(364550),R=e.i(835371),E=e.i(897272),N=e.i(287831),O=e.i(204105),T=e.i(11500),I=e.i(559107),A=e.i(54175),M=e.i(906545),F=e.i(994595),D=e.i(121837),B=e.i(492719),U=e.i(655559),L=e.i(731471),z=e.i(40129),H=e.i(291618);let V={credits:["Youâve hit your credit limit. To continue generating, please purchase more credits or upgrade your plan."],limit:["Youâve hit your concurrency limit.","To increase your limit, please upgrade your plan."]},G=[{tab:"subscription",src:"/upsell/upgrade-for-more-plan.webp"},{tab:"credits",src:"/upsell/upgrade-for-more-credits.webp"}],K={duration:.5,ease:g.EASE_OUT_STRONG},W="Your plan is set to end with this billing period. Keep it from your subscription page before choosing another.";function Y({reason:e,initialTab:r,defaultUsd:l,returnTo:o,open:u,onClose:h}){let{subscription:g,isLoading:m,error:x}=(0,z.useSubscription)(),w=void 0!==g,_=m&&!w,k=!w&&!_&&!!x,P=g?.plan_id??"free",R=w&&Object.hasOwn(a.PLAN_RANK,P),[E,N]=(0,d.useState)(null),[O,T]=(0,d.useState)(null),I=E??(R?(0,H.upsellTier)(P):null),[A,M]=(0,d.useState)(!1);!A&&"credits"===e&&R&&"free"===P&&M(!0);let F=O??(0,a.defaultBillingPeriod)(g),U="credits"===e,[G,K]=(0,d.useState)(null),W=!!(0,c.useReducedMotion)(),Z=(0,f.useBelowBreakpoint)("md")&&!A,ee=(0,d.useId)(),et=G??r??("limit"===e?"subscription":"credits"),ea=null!==I||A||"subscription"===et&&(_||k||!R),er=[...ea?["subscription"]:[],...U?["credits"]:[]],ei=er.includes(et)?et:er[0]??null,el=er.length>0?er:["subscription"],en=ei??"subscription",es=(0,L.usePlanCheckout)(o),eo=(0,C.usePackCheckout)(),ec=(0,d.useRef)(()=>{}),eu=S(ei);return ec.current=()=>{es.reset(),eo.reset()},(0,d.useEffect)(()=>{u||ec.current()},[u]),(0,t.jsxs)("div",{"data-all-plans":A||void 0,className:(0,i.cn)("relative flex min-h-0 gap-3",A?"xl:h-[calc(min(960px,100dvh-2rem)-1.5rem)]":"xl:h-[calc(min(900px,100dvh-2rem)-1.5rem)]"),children:[es.successDescription&&!A?(0,t.jsx)(B.PlanSuccessDialog,{description:es.successDescription,outcome:es.successOutcome??"active",onDismiss:es.reset}):null,(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 grow flex-col items-center overflow-y-auto overflow-x-hidden px-4 pt-(--upsell-pt) pb-(--upsell-pb) max-md:px-0 max-md:pt-0 max-md:pb-0 md:px-10",children:(0,t.jsxs)("div",{className:"relative flex w-full flex-col items-center gap-(--upsell-gap)",children:[Z?(0,t.jsxs)("div",{"data-hero":!0,className:"relative isolate aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xs",children:[(0,t.jsx)($,{activeIndex:eu,reduced:W,sizes:"100vw"}),(0,t.jsx)(n.Dialog.Close,{"aria-label":"Close",className:"absolute top-2 right-2 grid size-10 cursor-pointer place-items-center rounded-full bg-invert-300 text-white hover-focus:bg-invert-400 focus-visible:outline-2 focus-visible:outline-white/50 focus-visible:outline-offset-2",children:(0,t.jsx)(p.Icon,{name:"xmark",className:"size-5"})})]}):null,(0,t.jsxs)("div",{className:(0,i.cn)("flex w-full flex-col items-center gap-(--upsell-gap)",!A&&"max-w-[565px]"),children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center max-md:gap-1",children:[(0,t.jsx)(n.Dialog.Title,{className:"font-display font-medium text-primary-900 text-sub-sm uppercase leading-none tracking-[0.03em] max-md:text-sub-xxs max-md:normal-case max-md:leading-[1.2] max-md:tracking-normal md:whitespace-nowrap md:text-sub-lg",children:"Upgrade for more"}),(0,t.jsx)(n.Dialog.Description,{className:"w-min min-w-full font-normal text-copy-16 text-primary-600 max-md:text-copy-14",children:V[e].map((e,a)=>(0,t.jsxs)(d.Fragment,{children:[a>0?(0,t.jsx)("br",{}):null,e]},e))})]}),(0,t.jsxs)("div",{className:(0,i.cn)("flex w-full flex-col items-center gap-4 empty:hidden xl:flex-row",U&&A?"xl:justify-between":"xl:justify-center"),children:[U&&ei?(0,t.jsx)(y,{value:ei,onChange:K,tabs:er,idPrefix:ee}):null,A&&"subscription"===en?(0,t.jsx)(D.PeriodToggle,{value:F,onChange:T,disabled:eo.starting||null!==es.pendingPlan||es.awaiting}):null]})]}),(0,t.jsx)(j,{panels:el,active:en,children:e=>"credits"===e?(0,t.jsx)(X,{defaultUsd:l,checkout:eo,disabled:null!==es.pendingPlan||es.awaiting,pricing:ea,ids:ee,onClose:h}):_?(0,t.jsxs)("div",{...U?{role:"tabpanel",id:v("subscription",ee),"aria-labelledby":b("subscription",ee)}:{},"aria-busy":!0,className:"flex w-full max-w-[393px] flex-col items-center",children:[(0,t.jsx)("output",{className:"sr-only",children:"Loading your planâ¦"}),(0,t.jsx)(s.Skeleton,{className:"h-[456px] w-full rounded-md"})]}):A?(0,t.jsx)(Q,{subscription:g??null,focus:I,checkout:es,disabled:eo.starting,period:F,onPeriodChange:T,ids:U?ee:null}):I?(0,t.jsx)(q,{target:I,subscription:g??null,checkout:es,disabled:eo.starting,wantedPeriod:F,onPeriodChange:T,onSubscribe:(e,t,a)=>{N(I),es.subscribe(e,t,a)},onViewAllPlans:e=>{T(e),M(!0)},ids:U?ee:null}):(0,t.jsx)(J,{message:k?"We could not load your plan right now.":R?"You are already on our highest plan, so its limits are the most we can offer today.":"Your current plan is not one we can upgrade from here yet.",ids:U?ee:null})})]})}),(0,t.jsx)("div",{className:(0,i.cn)("relative hidden w-[min(684px,calc(100%-724px))] shrink-0 overflow-hidden rounded-xl",!A&&"xl:block"),children:(0,t.jsx)($,{activeIndex:eu,reduced:W,sizes:"684px"})}),Z?null:(0,t.jsx)(n.Dialog.Close,{"aria-label":"Close",className:(0,i.cn)("absolute top-2 right-2 grid size-10 cursor-pointer place-items-center rounded-full bg-primary-200 text-primary-900 hover-focus:bg-primary-300 focus-visible:outline-2 focus-visible:outline-primary-300 focus-visible:outline-offset-2",!A&&"xl:bg-invert-300 xl:text-white xl:focus-visible:outline-white/50 xl:hover-focus:bg-invert-400"),children:(0,t.jsx)(p.Icon,{name:"xmark",className:"size-5"})})]})}function $({activeIndex:e,reduced:a,sizes:r}){return G.map((i,l)=>(0,t.jsx)(o.motion.div,{initial:!1,animate:{x:a?0:`${(l-e)*100}%`,opacity:a&&l!==e?0:1},transition:K,className:"absolute inset-0",children:(0,t.jsx)(u.default,{src:i.src,alt:"",fill:!0,sizes:r,className:"object-cover"})},i.tab))}function J({message:e,ids:a}){let r=a?{role:"tabpanel",id:v("subscription",a),"aria-labelledby":b("subscription",a)}:{};return(0,t.jsxs)("div",{...r,className:"flex w-full max-w-[393px] flex-col items-center gap-(--upsell-foot-gap)",children:[(0,t.jsx)("output",{className:"text-center text-copy-16 text-primary-600",children:e}),(0,t.jsx)(m.TransitionLink,{href:"/pricing",className:"font-medium text-copy-16 text-primary-600 underline underline-offset-4 hover-focus:text-primary-900",children:"View all plans"})]})}function q({target:e,subscription:r,checkout:i,disabled:n,wantedPeriod:o,onPeriodChange:c,onSubscribe:u,onViewAllPlans:d,ids:p}){let{plans:g,isLoading:m}
1=(0,z.useSubscriptionPlans)(),x=(0,f.useBreakpoint)("md"),y=g.find(t=>t.plan_id===e),w=["monthly","yearly"].filter(e=>y?.rates[e]),S=r?.plan_id===e,j=S||r?.scheduled_change?.plan_id!==e?null:r?.scheduled_change??null,P=null!==j,C=j?j.period:w.includes(o)?o:w[0]??"monthly",R=y?.slider?j?.monthly_usd??y.slider.min_monthly_usd:null,E=y?(0,k.upsellFeatureRows)(y):[],N=!S&&!P&&r?.scheduled_change?r.scheduled_change:null,O=!S&&!P&&null!==r&&(r.cancel_at_period_end||"canceling"===r.status),T=null!==N||O,I=S||P,A=null!==i.pendingPlan||i.awaiting,M=S&&y?`${y.title} is now your plan.`:P&&y?`${y.title} is scheduled for your next billing period.`:N?`A change to ${(0,a.planTitle)(N.plan_id)} is already scheduled for your next billing period.`:O?W:i.noticeText??null,F=p?{role:"tabpanel",id:v("subscription",p),"aria-labelledby":b("subscription",p)}:{};return(0,t.jsxs)("div",{...F,className:"flex w-full max-w-[393px] flex-col items-center gap-(--upsell-foot-gap)",children:[m?(0,t.jsxs)("div",{"aria-busy":!0,className:"flex w-full flex-col",children:[(0,t.jsx)("output",{className:"sr-only",children:"Loading plansâ¦"}),(0,t.jsx)(s.Skeleton,{className:"h-[456px] w-full rounded-md"})]}):y&&0!==w.length&&(null===j||y.rates[j.period])?(0,t.jsx)(_.PlanTierCard,{className:"w-full border-transparent bg-white [--plan-card-padding:24px] [--plan-details-height:clamp(120px,calc(26.67dvh-66.7px),200px)] max-md:[--plan-card-padding:16px] max-md:[--plan-details-height:0px]",title:y.title,badge:(0,t.jsx)(_.PlanBadge,{tone:"accent",children:"Recommended"}),price:(0,U.planCardPrice)(y,C,R),action:(0,t.jsxs)("div",{className:"flex flex-col gap-4 max-md:gap-3",children:[w.length>1&&!I?(0,t.jsx)(D.PeriodToggle,{value:C,onChange:c,size:x?"md":"sm",fullWidth:!0,disabled:A||n}):null,I?(0,t.jsx)(l.Button,{size:"md",variant:"secondary",className:"w-full disabled:bg-primary-100 disabled:text-primary-500",disabled:!0,children:S?"Current plan":"Scheduled"}):(0,t.jsx)(l.Button,{size:"md",variant:"primary",className:"w-full",loading:i.pendingPlan===y.plan_id,disabled:n||T||i.awaiting||null!==i.pendingPlan&&i.pendingPlan!==y.plan_id,onClick:()=>u(y,C,R),children:"Subscribe"}),i.error?(0,t.jsx)("p",{className:"text-copy-14 text-destructive",role:"alert",children:i.error}):null,M&&!i.successDescription?(0,t.jsxs)("output",{className:"flex flex-col items-center gap-2 text-copy-14 text-primary-700",children:[i.awaiting?(0,t.jsx)(h.ShinyText,{text:M,className:"text-center text-primary-900"}):(0,t.jsx)("span",{className:"text-center",children:M}),i.awaiting?(0,t.jsx)(l.Button,{size:"xxs",variant:"tertiary",loading:i.checking,onClick:()=>{i.checkAgain()},children:"Check again"}):null]}):null]}),features:E}):(0,t.jsx)("p",{className:"font-normal text-copy-14 text-primary-600",role:"alert",children:"Plans are unavailable right now."}),(0,t.jsx)("button",{type:"button",className:"cursor-pointer font-medium text-copy-16 text-primary-600 underline underline-offset-4 hover-focus:text-primary-900",onClick:()=>d(C),children:"View all plans"})]})}
1function Q({subscription:e,focus:r,checkout:i,disabled:l,period:n,onPeriodChange:s,ids:o}){let c=o?{role:"tabpanel",id:v("subscription",o),"aria-labelledby":b("subscription",o)}:{},u=e?.plan_id??"free",d=e?.scheduled_change,p=e?.cancel_at_period_end||e?.status==="canceling",h=d?`A change to ${(0,a.planTitle)(d.plan_id)} is already scheduled for your next billing period.`:p?W:null;return(0,t.jsxs)("div",{...c,className:"plan-dialog flex w-full flex-col gap-4 [--plan-details-height:0px] md:[--plan-details-height:241px] xl:[--plan-details-height:clamp(208px,calc(7.78dvh+143px),227px)]",children:[h?(0,t.jsx)("output",{className:"text-center text-copy-14 text-primary-700",children:h}):null,(0,t.jsx)(U.PlansGrid,{checkout:i,disabled:l||null!==h,period:n,onPeriodChange:s,focusPlan:r??void 0,recommendedPlan:r??void 0,lowestPlan:"free"===u?"starter":u,glow:!1})]})}function X({defaultUsd:e,checkout:a,disabled:i,pricing:n,ids:s,onClose:o}){let{topupRate:c,exampleRates:u,isLoading:p}=(0,F.useCredits)(),{settings:h,mutate:g}=(0,M.useAutoTopup)(),[x,y]=(0,d.useState)(E.PACK_OPT_IN_OFF),[w,S]=(0,d.useState)(null),j=(0,f.useBreakpoint)("md"),_=c&&(0,r.packPresets)(c).length>0?c:null,k=w??(0,H.primaryPack)(e),P=!j&&null!==_&&"string"==typeof(0,C.packOptInFor)(_,h,k,x);function D(e){_&&(0,C.payWithOptIn)(a,e,{rate:_,settings:h,choice:x,store:e=>g(e,{revalidate:!1})})}return(0,t.jsxs)("div",{role:"tabpanel",id:v("credits",s),"aria-labelledby":b("credits",s),className:"flex w-full max-w-[661px] flex-col items-center gap-(--upsell-foot-gap) max-md:gap-6",children:[j?(0,t.jsx)(A.TopupUsageNote,{className:"w-full"}):null,_&&!j?(0,t.jsx)(T.PackTiles,{rate:_,selectedUsd:k,highlightedUsd:(0,H.primaryPack)(e),onSelect:e=>{S(e),a.clearError()},disabled:i||a.starting,className:"w-full"}):_?(0,t.jsx)(O.PackGrid,{rate:_,exampleRates:u,columns:j?3:6,className:"w-full [--pack-content-height:clamp(0px,calc(26.67dvh-186.7px),80px)]",disabled:i||a.starting,action:{kind:"buy",recommendedUsd:(0,H.primaryPack)(e),onBuy:D}}):(0,t.jsx)("p",{role:p?"status":"alert",className:"font-normal text-copy-14 text-primary-600",children:p?"Loading packsâ¦":"Credit packs are temporarily unavailable"}),_&&h?(0,t.jsx)("div",{className:"@container w-full",children:(0,t.jsx)(R.AutoTopupOptIn,{rate:_,settings:h,packUsd:j?null:k,choice:x,onChange:e=>{y(e),a.clearError()},disabled:i||a.starting,onManage:o,toggle:!j,className:"p-4 max-md:rounded-md"})}):null,_&&!j?(0,t.jsxs)(l.Button,{size:"md",variant:"primary",className:"w-full",loading:a.starting,disabled:i||a.starting||P,onClick:()=>D(k),children:["Buy for $",(0,N.formatCredits)(k)]}):null,a.error?(0,t.jsx)("p",{className:"text-copy-14 text-destructive",role:"alert",children:a.error}):null,(0,t.jsx)(I.RepeatTopupNote,{beside:"purchase"}),j?null:(0,t.jsx)(A.TopupUsageNote,{className:"w-full"}),n?(0,t.jsx)(m.TransitionLink,{href:"/pricing",className:"font-medium text-copy-16 text-primary-600 underline underline-offset-4 hover-focus:text-primary-900",children:"View all pricing"}):null]})}e.s(["UpgradeForMoreDialog",0,function({reason:e,initialTab:a,defaultUsd:r,returnTo:l,open:s,onOpenChange:o}){return(0,t.jsx)(B.PlanChangeDialog,{open:s,onOpenChange:o,children:(0,t.jsx)(n.Dialog.Content,{theme:"light","aria-label":"Upgrade for more",className:(0,i.cn)(P.UPSELL_DIALOG_GLOW,"w-[min(1461px,calc(100vw-2rem))] max-w-none rounded-[28px] border-0 bg-ivory p-3 [--upsell-foot-gap:clamp(16px,calc(5.33dvh-21.3px),32px)] [--upsell-gap:clamp(24px,calc(8dvh-32px),48px)] [--upsell-pb:clamp(12px,calc(4dvh-16px),24px)] [--upsell-pt:clamp(16px,calc(8dvh-40px),40px)] max-md:bg-[radial-gradient(150%_50%_at_85%_85%,var(--color-accent-700),transparent)] max-md:px-4 max-md:pt-4 max-md:pb-6 xl:h-[min(900px,calc(100dvh-2rem))] xl:max-h-[calc(100dvh-2rem)] xl:has-[[data-all-plans]]:h-[min(960px,calc(100dvh-2rem))] max-md:[--upsell-foot-gap:16px] max-md:[--upsell-gap:24px] [&>div]:px-0",_.PLAN_CARDS_PHONE),children:(0,t.jsx)(Y,{reason:e,initialTab:a,defaultUsd:r,returnTo:l,open:s,onClose:()=>o?.(!1)})})})}],342534)},598041,e=>{"use strict";e.s([],369244),e.i(369244);var t,a=e.i(136263),r=e.i(248134),i=e.i(900030),l=e.i(350738),n=e.i(335309);let s=a.createContext(void 0);function o(e){let t=a.useContext(s);if(void 0===t&&!e)throw Error((0,n.default)(47));return t}var c=e.i(635179),u=e.i(424576),d=e.i(133342),p=e.i(962599),h=e.i(587758),f=e.i(12308),g=e.i(367345),m=e.i(355377),x=e.i(265620);let b={...g.popupStoreSelectors,disabled:(0,d.createSelector)(e=>e.disabled),instantType:(0,d.createSelector)(e=>e.instantType),openMethod:(0,d.createSelector)(e=>e.openMethod),openChangeReason:(0,d.createSelector)(e=>e.openChangeReason),modal:(0,d.createSelector)(e=>e.modal),focusManagerModal:(0,d.createSelector)(e=>
1e.focusManagerModal),stickIfOpen:(0,d.createSelector)(e=>e.stickIfOpen),titleElementId:(0,d.createSelector)(e=>e.titleElementId),descriptionElementId:(0,d.createSelector)(e=>e.descriptionElementId),openOnHover:(0,d.createSelector)(e=>e.openOnHover),closeDelay:(0,d.createSelector)(e=>e.closeDelay),hasViewport:(0,d.createSelector)(e=>e.hasViewport)};class v extends u.ReactStore{constructor(e,t,r=!1){const i={...{...(0,g.createInitialPopupStoreState)(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1},...e},l=new m.PopupTriggerMap;i.open&&e?.mounted===void 0&&(i.mounted=!0),i.floatingRootContext=(0,g.createPopupFloatingRootContext)(l,t,r),super(i,{popupRef:a.createRef(),backdropRef:a.createRef(),internalBackdropRef:a.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:a.createRef(),beforeContentFocusGuardRef:a.createRef(),stickIfOpenTimeout:new p.Timeout,triggerElements:l},b)}setOpen=(e,t)=>
1{let a=t.reason===h.REASONS.triggerHover,r=t.reason===h.REASONS.triggerPress&&0===t.event.detail,i=!e&&(t.reason===h.REASONS.escapeKey||null==t.reason),l=(0,f.attachPreventUnmountOnClose)(t),n=this.select("activeTriggerId");if(e||t.reason!==h.REASONS.closePress||null!=t.trigger||null==n||(t.trigger=this.context.triggerElements.getById(n)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let a={open:e,openChangeReason:t.reason};(0,f.setPopupOpenState)(a,e,t.trigger,l()),this.update(a)};a?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(x.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),c.flushSync(s)):s(),r||i?this.set("instantType",r?"click":"dismiss"):t.reason===h.REASONS.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(e,t){let{store:r,internalStore:i}=(0,f.usePopupStore)(e,(e,a)=>new v(t,e,a));return a.useEffect(()=>i?.disposeEffect(),[i]),r}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}var y=e.i(276444),w=e.i(222971),S=e.i(52644);function j({props:e}){let{children:t,open:r,defaultOpen:i=!1,onOpenChange:n,onOpenChangeComplete:o,modal:c=!1,handle:u,triggerId:d,defaultTriggerId:p=null}=e,g=v.useStore(u?.store,{modal:c,open:i,openProp:r,activeTriggerId:p,triggerIdProp:d});(0,f.useInitialOpenSync)(g,r,i,p),g.useControlledProp("openProp",r),g.useControlledProp("triggerIdProp",d);let m=g.useState("open"),x=g.useState("mounted"),b=g.useState("payload"),w=null!=(0,l.useFloatingParentNodeId)();g.useContextCallback("onOpenChange",n),g.useContextCallback("onOpenChangeComplete",o),(0,f.usePopupRootSync)(g,m),(0,f.useImplicitActiveTrigger)(g);let{forceUnmount:k}=(0,f.useOpenStateTransitions)(m,g,()=>{g.update({stickIfOpen:!0,openChangeReason:null})});g.useSyncedValues({modal:c,nested:w}),a.useEffect(()=>{m||g.context.stickIfOpenTimeout.clear()},[g,m]);let P=a.useCallback(()=>{g.setOpen(!1,(0,y.createChangeEventDetails)(h.REASONS.imperativeAction))},[g]);a.useImperativeHandle(e.actionsRef,()=>({unmount:k,close:P}),[k,P]);let C=m||x,R=a.useMemo(()=>({store:g}),[g]);return(0,S.jsxs)(s.Provider,{value:R,children:[C&&(0,S.jsx)(_,{store:g,modal:c}),"function"==typeof t?t({payload:b}):t]})}function _({store:e,modal:t}){let l=e.useState("floatingRootContext"),n=(0,i.useDismiss)(l,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),s=n.reference??r.EMPTY_OBJECT,o=n.trigger??r.EMPTY_OBJECT,c=a.useMemo(()=>(0,w.mergeProps)(f.FOCUSABLE_POPUP_PROPS,n.floating),[n.floating]);return(0,f.usePopupInteractionProps)(e,{activeTriggerProps:s,inactiveTriggerProps:o,popupProps:c}),null}var k=e.i(34709),P=e.i(326203),C=e.i(782655),R=e.i(920995),E=e.i(740922),N=e.i(991638),O=e.i(230375),T=e.i(990461),I=e.i(835017),A=e.i(275913);let M=a.forwardRef(function(e,t){let{render:r,className:i,style:l,disabled:s=!1,nativeButton:c=!0,handle:u,payload:d,openOnHover:p=!1,delay:g=300,closeDelay:m=0,id:b,...v}=e,y=o(!0),w=u?.store??y?.store;if(!w)throw Error((0,n.default)(74));let j=(0,O.useBaseUiId)(b),_=w.useState("isTriggerActive",j),M=w.useState("floatingRootContext"),F=w.useState("isOpenedByTrigger",j),D=w.useState("triggerPopupId",j),B=a.useRef(null),{registerTrigger:U,isMountedByThisTrigger:L}=(0,f.useTriggerDataForwarding)(j,B,w,{payload:d,disabled:s,openOnHover:p,closeDelay:m}),z=w.useState("openChangeReason"),H=w.useState("stickIfOpen"),V=w.useState("openMethod"),G=w.useState("focusManagerModal"),K=(0,N.useHoverReferenceInteraction)(M,{enabled:!s&&null!=M&&p&&("touch"!==V||z!==h.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,R.safePolygon)(),restMs:g,delay:{close:m},triggerElementRef:B,isActiveTrigger:_,isClosing:()=>"ending"===w.select("transitionStatus")}),W=(0,E.useClick)(M,{enabled:null!=M,stickIfOpen:H}),Y=(0,A.useOpenMethodTriggerProps)(()=>w.select("open"),e=>{w.set("openMethod",e)}),$=w.useState("triggerProps",L),{getButtonProps:J,buttonRef:q}=(0,k.useButton)({disabled:s,native:c}),{preFocusGuardRef:Q,handlePreFocusGuardFocus:X,handleFocusTargetFocus:Z}=(0,I.useTriggerFocusGuards)(w,B),ee=(0,C.useRenderElement)("button",e,{state:{disabled:s,open:F},ref:[q,t,U,B],props:[W.reference,K,$,Y,{[x.CLICK_TRIGGER_IDENTIFIER]:"",id:j,"aria-haspopup":"dialog","aria-expanded":F,"aria-controls":D},v,J],stateAttributesMapping:{open:e=>e&&z===h.REASONS.triggerPress?P.pressableTriggerOpenStateMapping.open(e):P.triggerOpenStateMapping.open(e)}});return L&&!G?(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(T.FocusGuard,{ref:Q,onFocus:X}),(0,S.jsx)(a.Fragment,{children:ee},j),(0,S.jsx)(T.FocusGuard,{ref:w.context.triggerFocusTargetRef,onFocus:Z})]}):(0,S.jsx)(a.Fragment,{children:ee},j)});var F=e.i(312231);let D=a.createContext(void 0),B=a.forwardRef(function(e,t){let{keepMounted:a=!1,...r}=e,{store:i}=o();return i.useState("mounted")||a?(0,S.jsx)(D.Provider,{value:a,children:(0,S.jsx)(F.FloatingPortal,{ref:t,...r})}):null});var U=e.i(585636),L=e.i(599543);let z=a.createContext(void 0);function H(){let e=a.useContext(z);if(!e)throw Error((0,n.default)(46));return e}var V=e.i(729192),G=e.i(271523),K=e.i(931893),W=e.i(948395),Y=e.i(134861),$=e.i(923198);let J=a.forwardRef(function(e,t){let{render:r,className:i,style:s,anchor:c,positionMethod:u="absolute",side:d="bottom",align:p="center",sideOffset:f=0,alignOffset:g=0,collisionBoundary:m="clipping-ancestors",collisionPadding:b=5,arrowPadding:v=5,sticky:y=!1,disableAnchorTracking:w=!1,collisionAvoidance:j=x.POPUP_COLLISION_AVOIDANCE,..._}=e,{store:k}=o(),P=function(){let e=a.useContext(D);if(void 0===e)throw Error((0,n.default)(45));return e}(),C=(0,l.useFloatingNodeId)(),R=k.useState("floatingRootContext"),E=k.useState("mounted"),N=k.useState("open"),O=k.useState("openChangeReason"),T=k.useState("activeTriggerElement"),I=k.useState("modal"),A=k.useState("openMethod"),M=k.useState("positionerElement"),F=k.useState("instantType"),B=k.useState("transitionStatus"),H=k.useState("hasViewport"),J=a.useRef(null),q=(0,K.useAnimationsFinished)(M,!1,!1),Q=(0,V.useAnchorPositioning)({anchor:c,floatingRootContext:R,positionMethod:u,mounted:E,side:d,sideOffset:f,align:p,alignOffset:g,arrowPadding:v,collisionBoundary:m,collisionPadding:b,sticky:y,disableAnchorTracking:w,keepMounted:P,nodeId:C,collisionAvoidance:j,adaptiveOrigin:H?W.adaptiveOrigin:void 0}),X=R.useState("domReferenceElement");(0,L.useIsoLayoutEffect)(()=>{let e=J.current;if(X&&(J.current=X),e&&X&&X!==e){k.set("instantType",void 0);let e=new AbortController;return q(()=>{k.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[X,q,k]),(0,$.useAnchoredPopupScrollLock)(N&&!0===I&&O!==h.REASONS.triggerHover,"touch"===A,M,T);let Z=a.useCallback(e=>{k.set("positionerElement",e)},[k]),ee={open:N,side:Q.side,align:Q.align,anchorHidden:Q.anchorHidden,instant:F},et=(0,Y.usePositioner)(e,ee,{styles:Q.positionerStyles,transitionStatus:B,props:_,refs:[t,Z],hidden:!E,inert:!N});return(0,S.jsxs)(z.Provider,{value:Q,children:[E&&!0===I&&O!==h.REASONS.triggerHover&&(0,S.jsx)(G.InternalBackdrop,{ref:k.context.
1internalBackdropRef,inert:(0,U.inertValue)(!N),cutout:T}),(0,S.jsx)(l.FloatingNode,{id:C,children:et})]})});var q=e.i(92615),Q=e.i(267785),X=e.i(554428),Z=e.i(526851),ee=e.i(467618),et=e.i(858049),ea=e.i(84123),er=e.i(231074),ei=e.i(48164);let el=a.createContext(void 0);function en(e){let{value:t,children:a}=e;return(0,S.jsx)(el.Provider,{value:t,children:a})}let es={...P.popupStateMapping,...Z.transitionStatusMapping},eo=a.forwardRef(function(e,t){let{render:r,className:i,style:l,initialFocus:n,finalFocus:s,...c}=e,{store:u}=o(),d=H(),p=null!=(0,ea.useToolbarRootContext)(!0),{context:g,hasClosePart:m}=function(){let[e,t]=a.useState(0),r=(0,ei.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:a.useMemo(()=>({register:r}),[r]),hasClosePart:e>0}}(),x=u.useState("open"),b=u.useState("openMethod"),v=u.useState("instantType"),y=u.useState("transitionStatus"),w=u.useState("popupProps"),j=u.useState("titleElementId"),_=u.useState("descriptionElementId"),k=u.useState("modal"),P=u.useState("mounted"),R=u.useState("openChangeReason"),E=u.useState("activeTriggerElement"),N=u.useState("floatingRootContext"),O=N.useState("floatingId"),T=u.useState("disabled"),I=u.useState("openOnHover"),A=u.useState("closeDelay"),M=c.id??O;(0,ee.useOpenChangeComplete)({open:x,ref:u.context.popupRef,onComplete(){x&&u.context.onOpenChangeComplete?.(!0)}}),(0,X.useHoverFloatingInteraction)(N,{enabled:I&&!T,closeDelay:A});let F=void 0===n?(0,f.createDefaultInitialFocus)(u.context.popupRef):n,D=!1!==k&&m;u.useSyncedValue("focusManagerModal",D);let B=a.useCallback(e=>{u.set("popupElement",e)},[u]),U={open:x,side:d.side,align:d.align,instant:v,transitionStatus:y},L=(0,C.useRenderElement)("div",e,{state:U,ref:[t,u.context.popupRef,B],props:[w,{id:M,role:"dialog",...f.FOCUSABLE_POPUP_PROPS,"aria-labelledby":j,"aria-describedby":_,onKeyDown(e){p&&et.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,er.getDisabledMountTransitionStyles)(y),c],stateAttributesMapping:es});return(0,S.jsx)(Q.FloatingFocusManager,{context:N,openInteractionType:b,modal:D,disabled:!P||R===h.REASONS.triggerHover,initialFocus:F,returnFocus:s,restoreFocus:"popup",previousFocusableElement:(0,q.isHTMLElement)(E)?E:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:(0,S.jsx)(en,{value:g,children:L})})}),ec=a.forwardRef(function(e,t){let{render:a,className:r,style:i,...l}=e,{store:n}=o(),s=n.useState("open"),{arrowRef:c,side:u,align:d,arrowUncentered:p,arrowStyles:h}=H();return(0,C.useRenderElement)("div",e,{state:{open:s,side:u,align:d,uncentered:p},ref:[t,c],props:[{style:h,"aria-hidden":!0},l],stateAttributesMapping:P.popupStateMapping})}),eu={...P.popupStateMapping,...Z.transitionStatusMapping},ed=a.forwardRef(function(e,t){let{render:a,className:r,style:i,...l}=e,{store:n}=o(),s=n.useState("open"),c=n.useState("mounted"),u=n.useState("transitionStatus"),d=n.useState("openChangeReason");return(0,C.useRenderElement)("div",e,{state:{open:s,transitionStatus:u},ref:[n.context.backdropRef,t],props:[{role:"presentation",hidden:!c,style:{pointerEvents:d===h.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:eu})}),ep=a.forwardRef(function(e,t){let{render:a,className:r,style:i,...l}=e,{store:n}=o(),s=(0,O.useBaseUiId)(l.id);return n.useSyncedValueWithCleanup("titleElementId",s),(0,C.useRenderElement)("h2",e,{ref:t,props:[{id:s},l]})}),eh=a.forwardRef(function(e,t){let{render:a,className:r,style:i,...l}=e,{store:n}=o(),s=(0,O.useBaseUiId)(l.id);return n.useSyncedValueWithCleanup("descriptionElementId",s),(0,C.useRenderElement)("p",e,{ref:t,props:[{id:s},l]})}),ef=a.forwardRef(function(e,t){let r,{render:i,className:l,style:n,disabled:s=!1,nativeButton:c=!0,...u}=e,{buttonRef:d,getButtonProps:p}=(0,k.useButton)({disabled:s,focusableWhenDisabled:!1,native:c}),{store:f}=o();return r=a.useContext(el),(0,L.useIsoLayoutEffect)(()=>r?.register(),[r]),(0,C.useRenderElement)("button",e,{ref:[t,d],props:[{onClick(e){f.setOpen(!1,(0,y.createChangeEventDetails)(
1h.REASONS.closePress,e.nativeEvent))}},u,p]})}),eg=((t={}).popupWidth="--popup-width",t.popupHeight="--popup-height",t);var em=e.i(314035);let ex={activationDirection:e=>e?{"data-activation-direction":e}:null},eb=a.forwardRef(function(e,t){let{render:a,className:r,style:i,children:l,...n}=e,{store:s}=o(),{side:c}=H(),u=s.useState("instantType"),{children:d,state:p}=(0,em.usePopupViewport)({store:s,side:c,cssVars:eg,children:l}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:u};return(0,C.useRenderElement)("div",e,{state:h,ref:t,props:[n,{children:d}],stateAttributesMapping:ex})});class ev{constructor(){this.store=new v}open(e){let t=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!t)throw Error((0,n.default)(80,e));this.store.setOpen(!0,(0,y.createChangeEventDetails)(h.REASONS.imperativeAction,void 0,t))}close(){this.store.setOpen(!1,(0,y.createChangeEventDetails)(h.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}}e.s(["Arrow",0,ec,"Backdrop",0,ed,"Close",0,ef,"Description",0,eh,"Handle",0,ev,"Popup",0,eo,"Portal",0,B,"Positioner",0,J,"Root",0,function(e){return o(!0)?(0,S.jsx)(j,{props:e}):(0,S.jsx)(l.FloatingTree,{children:(0,S.jsx)(j,{props:e})})},"Title",0,ep,"Trigger",0,M,"Viewport",0,eb,"createHandle",0,function(){return new ev}],30319);var ey=e.i(30319);e.s(["Popover",0,ey],598041)},616339,e=>{"use strict";var t=e.i(672357),a=e.i(136263),r=e.i(145092);e.s(["useAnimationFrame",0,function(e){let i=(0,a.useRef)(0),{isStatic:l}=(0,a.useContext)(r.MotionConfigContext);(0,a.useEffect)(()=>{if(l)return;let a=({timestamp:t,delta:a})=>{i.current||(i.current=t),e(t-i.current,a)};return t.frame.update(a,!0),()=>(0,t.cancelFrame)(a)},[e])}])},162427,e=>{"use strict";var t=e.i(52644),a=e.i(294237),r=e.i(136263),i=e.i(887008),l=e.i(635356),n=e.i(378833);let s=(0,a.cva)("flex w-full items-center rounded-full border transition-[background-color,border-color,box-shadow] duration-150 ease-[
1cubic-bezier(0.4,0,0.2,1)] has-[[aria-invalid=true]]:has-[:focus-visible]:border-alert has-[:disabled]:cursor-not-allowed has-[[aria-invalid=true]]:border-alert has-[:disabled]:opacity-50 has-[[aria-invalid=true]]:hover:border-alert motion-reduce:transition-none",{variants:{theme:{auto:"",dark:"",light:""},size:{xs:"h-8.5 gap-2 px-3 has-[button]:pr-1",sm:"h-12 gap-3 px-4 has-[button]:pr-2",md:"h-12 gap-3 px-4 has-[button]:pr-2",lg:"h-14 gap-3 px-5 has-[button]:pr-2"},variant:{default:"",surface:"",ghost:""}},compoundVariants:[{variant:"default",theme:"auto",class:"border-primary-300 bg-primary-200 hover:border-primary-500 hover:bg-primary-100 has-[:focus-visible]:border-primary-500 has-[:focus-visible]:bg-invert-200 has-[[aria-invalid=true]]:bg-transparent"},{variant:"default",theme:"light",class:"border-black/10 bg-black/5 hover:border-black/50 hover:bg-black/3 has-[:focus-visible]:border-black/50 has-[:focus-visible]:bg-white/5 has-[[aria-invalid=true]]:bg-transparent"},{variant:"default",theme:"dark",class:"border-eggshell/10 bg-eggshell/5 hover:border-eggshell/50 hover:bg-eggshell/3 has-[:focus-visible]:border-eggshell/50 has-[:focus-visible]:bg-black/5 has-[[aria-invalid=true]]:bg-transparent"},{variant:"surface",theme:"auto",class:"border-primary-300 bg-invert-800 hover:border-primary-500 hover:bg-invert-700 has-[[aria-invalid=true]]:has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-alert)] has-[:focus-visible]:border-primary-500 has-[:disabled]:bg-primary-200 has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-primary-500)]"},{variant:"surface",theme:"light",class:"border-black/10 bg-white hover:border-black/50 hover:bg-eggshell has-[[aria-invalid=true]]:has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-alert)] has-[:focus-visible]:border-black/50 has-[:disabled]:bg-black/5 has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-black)]"},{variant:"surface",theme:"dark",class:"border-eggshell/10 bg-slate hover:border-eggshell/50 hover:bg-white/7 has-[[aria-invalid=true]]:has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-alert)] has-[:focus-visible]:border-eggshell/50 has-[:disabled]:bg-eggshell/5 has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-white)]"},{variant:"ghost",theme:"auto",class:"border-primary-300 hover:border-primary-500 has-[[aria-invalid=true]]:has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-alert)] has-[:disabled]:border-transparent has-[:focus-visible]:border-primary-500 has-[:disabled]:bg-primary-200 has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-primary-500)]"},{variant:"ghost",theme:"light",class:"border-black/10 hover:border-black/50 has-[[aria-invalid=true]]:has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-alert)] has-[:disabled]:border-transparent has-[:focus-visible]:border-black/50 has-[:disabled]:bg-black/5 has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-black)]"},{variant:"ghost",theme:"dark",class:"border-eggshell/10 hover:border-eggshell/50 has-[[aria-invalid=true]]:has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-alert)] has-[:disabled]:border-transparent has-[:focus-visible]:border-eggshell/50 has-[:disabled]:bg-eggshell/5 has-[:focus-visible]:shadow-[0_0_0_1px_var(--color-white)]"}],defaultVariants:{theme:"auto",size:"md",variant:"default"}}),o=(0,a.cva)("min-w-0 flex-1 truncate bg-transparent font-normal outline-hidden disabled:cursor-not-allowed [&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none",{variants:{theme:{auto:"text-primary-800 placeholder:text-primary-500 not-dark:[&:-webkit-autofill]:[-webkit-box-shadow:0_0_0px_1000px_var(--color-app-control-surface)_inset] not-dark:[&:-webkit-autofill]:[-webkit-text-fill-color:var(--color-black)] dark:[&:-webkit-autofill]:[-webkit-box-shadow:0_0_0px_1000px_var(--color-slate)_inset] dark:[&:-webkit-autofill]:[-webkit-text-fill-color:var(--color-white)]",dark:"text-white placeholder:text-white/50 [&:-webkit-autofill]:[-webkit-box-shadow:0_0_0px_1000px_var(--color-slate)_inset] [&:-webkit-autofill]:[-webkit-text-fill-color:var(--color-white)]",light:"text-black placeholder:text-black/50 [&:-webkit-autofill]:[-webkit-box-shadow:0_0_0px_1000px_var(--color-app-control-surface)_inset] [&:-webkit-autofill]:[-webkit-text-fill-color:var(--color-black)]"},size:{xs:"text-[13px] leading-4",sm:"text-copy-16",md:"text-copy-16",lg:"text-[17px] leading-6"}},defaultVariants:{theme:"auto",size:"md"}}),c=(0,a.cva)("text-[13px] leading-4 transition-colors duration-200 ease-out-strong group-has-[[aria-invalid=true]]/field:text-alert group-has-[:disabled]/field:opacity-60",{variants:{theme:{auto:"text-primary-600",dark:"text-eggshell/70",light:"text-slate/60"}},defaultVariants:{theme:"auto"}});function u({children:e,className:a}){return(0,t.jsx)("span",{className:(0,l.cn)("pointer-events-none flex size-5 shrink-0 items-center justify-center text-black/50 group-data-[field-size=xs]/field:size-4 group-data-[field-theme=auto]/field:text-primary-500 group-data-[field-theme=dark]/field:text-eggshell/50 group-data-[field-theme=light]/field:text-black/50 [&_svg]:size-full",a),children:e})}let d=Object.assign(function({className:e,theme:a,size:n,variant:u,leftSlot:d,rightSlot:p,eyebrow:h,helperText:f,ref:g,id:m,"aria-describedby":x,...b}){let v=(0,r.useId)(),y=(0,r.useId)(),w=m??v;return(0,t.jsxs)("div",{"data-field-theme":a??"auto","data-field-size":n??"md","data-field-variant":u??"default",className:(0,l.cn)("group/field flex w-full flex-col gap-1.5",e),children:[h?(0,t.jsx)("label",{htmlFor:w,className:(0,i.fieldEyebrowVariants)({theme:a}),children:h}):null,(0,t.jsxs)("div",{className:(0,l.cn)(s({theme:a,size:n,variant:u})),children:[d,(0,t.jsx)("input",{ref:g,id:w,"aria-describedby":f?[x,y].filter(
1Boolean).join(" "):x,className:o({theme:a,size:n}),...b}),p]}),f?(0,t.jsx)("div",{id:y,className:c({theme:a}),children:f}):null]})},{IconRoot:u,Button:function({className:e,size:a="sm",variant:r="primary",...i}){return(0,t.jsx)(n.Button,{...i,size:a,shape:"rounded",variant:r,className:e})}});e.s(["TextInput",0,d,"TextInputIconRoot",0,u])}]);
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.