1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,438037,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(996684),a=e.i(695859),s=e.i(199978);e.i(741820);var n=e.i(331597),l=e.i(511398),o=e.i(943592),c=e.i(510305),d=e.i(526683),m=e.i(463209),h=e.i(890210);let u=["/imgs/avatars/1.png","/imgs/avatars/2.png","/imgs/avatars/3.png","/imgs/avatars/4.png","/imgs/avatars/5.png","/imgs/avatars/6.png"];function p(e){let r,a,s,n=(0,i.c)(4),{tip:l}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("span",{className:"mx-4 inline-flex items-center -space-x-2",children:u.map(g)}),n[0]=r):r=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:5}).map(x)}),n[1]=a):a=n[1],n[2]!==l?(s=(0,t.jsxs)("div",{className:"mx-auto mt-8 flex w-fit flex-col items-center gap-2 sm:flex-row",children:[r,(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1 md:items-start",children:[a,(0,t.jsx)("p",{className:"text-muted-foreground text-left text-sm font-normal",children:l})]})]}),n[2]=l,n[3]=s):s=n[3],s}function x(e,i){return(0,t.jsx)(m.Star,{className:"size-4 fill-yellow-400 text-yellow-400"},i)}function g(e,i){return(0,t.jsx)(h.Avatar,{className:"size-10 border",children:(0,t.jsx)(r.default,{width:40,height:40,src:e,alt:"placeholder"})},i)}function f(e){let m,h,u,x,g,f,y,w,j,N,_,k,S=(0,i.c)(61),{section:T,className:C}=e,z=T.highlight_text??"",M=null;z&&(M=T.title?.split(z,2));let I="split"===T.layout,{shouldOpenPricingModal:E,openBrowsePricingModal:L,prefetchPricingModal:A}=(0,c.usePricingLink)(),P=v,R=e=>M&&2===M.length?(0,t.jsxs)("h1",{className:e,children:[P(M[0]),(0,t.jsx)(o.Highlighter,{action:"underline",color:"#FF9800",children:z}),P(M[1])]}):(0,t.jsx)("h1",{className:e,children:P(T.title)});S[0]!==L||S[1]!==A||S[2]!==T.buttons||S[3]!==E?(m=(e,i,r)=>{let a=void 0!==r&&r;return T.buttons?(0,t.jsx)("div",{className:e,children:T.buttons.map((e,r)=>(0,t.jsx)(l.Button,{size:e.size||"default",variant:e.variant||"default",type:E(e.url)?"button":void 0,className:(0,d.cn)(i,a&&0===r&&"h-13 rounded-2xl border border-[#d8ff7a] bg-[linear-gradient(180deg,#b8f24c_0%,#8fd11a_100%)] px-7 text-base font-bold text-[#0d2200] shadow-[0_0_0_1px_rgba(216,255,122,0.24),0_18px_40px_rgba(153,220,37,0.42),0_0_26px_rgba(190,255,95,0.24)] hover:bg-[linear-gradient(180deg,#c6ff57_0%,#99dd21_100%)] dark:border-[#e3ff96] dark:bg-[linear-gradient(180deg,#c3ff5e_0%,#97dc1f_100%)] dark:text-[#0d2400] dark:shadow-[0_0_0_1px_rgba(227,255,150,0.3),0_20px_44px_rgba(157,224,43,0.48),0_0_30px_rgba(195,255,94,0.28)]",a&&1===r&&"h-13 rounded-2xl border border-[#d8dfeb] bg-[linear-gradient(180deg,#ffffff_0%,#eef3fb_100%)] px-7 text-base font-semibold text-[#22314a] shadow-[0_16px_38px_rgba(32,56,94,0.16)] hover:bg-[linear-gradient(180deg,#ffffff_0%,#f6f9ff_100%)] dark:border-[#dce4f4] dark:bg-[linear-gradient(180deg,#ffffff_0%,#edf3ff_100%)] dark:text-[#21314a] dark:shadow-[0_18px_42px_rgba(7,18,43,0.22)]"),asChild:!E(e.url),onClick:E(e.url)?L:void 0,onMouseEnter:E(e.url)?A:void 0,onFocus:E(e.url)?A:void 0,children:E(e.url)?(0,t.jsxs)("span",{className:"inline-flex items-center justify-center gap-2 whitespace-nowrap",children:[e.icon&&(0,t.jsx)(n.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]}):(0,t.jsxs)(s.Link,{href:e.url??"",target:e.target??"_self",children:[e.icon&&(0,t.jsx)(n.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]})},r))}):null},S[0]=L,S[1]=A,S[2]=T.buttons,S[3]=E,S[4]=m):m=S[4];let $=m;S[5]!==T.announcement?(h=()=>T.announcement?(0,t.jsxs)(s.Link,{href:T.announcement.url||"",target:T.announcement.target||"_self",className:"hover:bg-background dark:hover:border-t-border bg-muted group mb-5 flex w-fit items-center gap-4 roun
1ded-full border p-1 pl-4 shadow-md shadow-zinc-950/5 transition-colors duration-300 dark:border-t-white/5 dark:shadow-zinc-950",children:[(0,t.jsx)("span",{className:"text-foreground text-sm",children:T.announcement.title}),(0,t.jsx)("span",{className:"dark:border-background block h-4 w-0.5 border-l bg-white dark:bg-zinc-700"}),(0,t.jsx)("div",{className:"bg-background group-hover:bg-muted size-6 overflow-hidden rounded-full duration-500",children:(0,t.jsxs)("div",{className:"flex w-12 -translate-x-1/2 duration-500 ease-in-out group-hover:translate-x-0",children:[(0,t.jsx)("span",{className:"flex size-6",children:(0,t.jsx)(a.ArrowRight,{className:"m-auto size-3"})}),(0,t.jsx)("span",{className:"flex size-6",children:(0,t.jsx)(a.ArrowRight,{className:"m-auto size-3"})})]})})]}):null,S[5]=T.announcement,S[6]=h):h=S[6];let O=h;if(I){let e,i,a,s,l,o,c,m,h;S[7]!==T.items?(e=T.items?.some(b),S[7]=T.items,S[8]=e):e=S[8];let u=e,p=!!T.image_invert?.src,x=T.id;return S[9]!==C||S[10]!==T.className?(i=(0,d.cn)("relative flex min-h-[100svh] items-center overflow-hidden pt-20 pb-12 md:pt-28 md:pb-18",T.className,C),S[9]=C,S[10]=T.className,S[11]=i):i=S[11],S[12]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"absolute inset-0 -z-10 bg-[radial-gradient(circle_at_top_left,rgba(198,220,201,0.48),transparent_34%),radial-gradient(circle_at_top_right,rgba(234,229,216,0.78),transparent_32%),radial-gradient(circle_at_bottom_center,rgba(207,228,219,0.24),transparent_44%),linear-gradient(180deg,rgba(255,255,255,0.96),rgba(247,244,237,0.92))] dark:bg-[radial-gradient(circle_at_top_left,rgba(136,185,145,0.16),transparent_34%),radial-gradient(circle_at_top_right,rgba(56,78,122,0.34),transparent_32%),radial-gradient(circle_at_bottom_center,rgba(18,90,112,0.2),transparent_42%),linear-gradient(180deg,rgba(7,18,44,0.98),rgba(4,12,30,0.96))]"}),s=(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 -z-10 h-36 bg-gradient-to-b from-transparent to-[#f5f1e9]/95 dark:to-[#04112b]"}),S[12]=a,S[13]=s):(a=S[12],s=S[13]),S[14]!==O?(l=O(),S[14]=O,S[15]=l):l=S[15],S[16]!==T.description?(o=T.description?(0,t.jsx)("p",{className:"text-muted-foreground mx-auto mt-3 max-w-2xl text-base leading-6.5 text-balance sm:text-[1.01rem]",dangerouslySetInnerHTML:{__html:T.description}}):null,S[16]=T.description,S[17]=o):o=S[17],S[18]!==p||S[19]!==T.image||S[20]!==T.image_badge||S[21]!==T.image_caption||S[22]!==T.image_invert?(c=(T.image?.src||T.image_invert?.src)&&(0,t.jsxs)("div",{className:"relative mt-4 w-full max-w-[1180px]",children:[(0,t.jsx)("div",{className:"absolute inset-x-[10%] bottom-[-6%] h-24 rounded-full bg-[#9bb49f]/28 blur-3xl"}),(0,t.jsx)("div",{className:"bg-background/86 border-border/60 overflow-hidden rounded-[2.2rem] border p-1.5 shadow-[0_30px_90px_rgba(77,96,79,0.16)] backdrop-blur lg:p-2 dark:border-white/10 dark:bg-[#08152f]/76 dark:shadow-[0_34px_110px_rgba(3,10,24,0.62)]",children:(0,t.jsxs)("div",{className:"from-background relative aspect-[33/10] overflow-hidden rounded-[1.7rem] border bg-gradient-to-br via-[#eef3eb] to-[#dce8d9] dark:border-white/8 dark:from-[#0d1c38] dark:via-[#122644] dark:to-[#1b3d39]",children:[(0,t.jsxs)("div",{className:"absolute inset-x-0 top-0 z-10 flex items-center justify-between px-3.5 py-2.5 text-xs font-medium",children:[(0,t.jsx)("span",{className:"bg-background/92 rounded-full px-3 py-1 shadow-sm dark:bg-[#08152f]/88 dark:text-white/88",children:T.image_badge||"HowToPose.ai"}),T.image_caption&&(0,t.jsx)("span",{className:"bg-background/66 text-muted-foreground rounded-full px-3 py-1 backdrop-blur dark:bg-[#08152f]/70 dark:text-white/72",children:T.image_caption})]}),T.image_invert?.src&&(0,t.jsx)(r.default,{className:"relative z-0 hidden h-full w-full object-cover dark:block",src:T.image_invert.src,alt:T.image_invert.alt||T.image?.alt||"",width:T.image_invert.width||T.image?.width||1200,height:T.image_invert.height||T.image?.height||630,sizes:"(max-width: 1280px) 100vw, 960px",loading:"eager",fetchPriority:"high",quality:75,unoptimized:T.image_invert.src.startsWith("http")}),T.image?.src&&(0,t.jsx)(r.default,{className:(0,d.cn)("relative z-0 block h-full w-full object-cover",p&&"dark:hidden"),src:T.image.src,alt:T.image.alt||T.image_invert?.alt||"",width:T.image.width||T.image_invert?.width||1200,height:T.image.height||T.image_invert?.height||630,sizes:"(max-width: 1280px) 100v
1w, 960px",loading:"eager",fetchPriority:"high",quality:75,unoptimized:T.image.src.startsWith("http")})]})})]}),S[18]=p,S[19]=T.image,S[20]=T.image_badge,S[21]=T.image_caption,S[22]=T.image_invert,S[23]=c):c=S[23],S[24]!==$?(m=$("mt-3 flex flex-wrap items-center justify-center gap-3","h-12 rounded-xl px-5 text-sm",!0),S[24]=$,S[25]=m):m=S[25],S[26]!==u||S[27]!==T.items?(h=T.items&&T.items.length>0&&(0,t.jsx)("div",{className:(0,d.cn)("mt-4",u?"grid w-full max-w-3xl gap-3 sm:grid-cols-2":"hidden flex-wrap justify-center gap-2.5 2xl:flex"),children:T.items.map((e,i)=>(0,t.jsxs)("div",{className:(0,d.cn)("ring-foreground/8 bg-background/90 border-border/50 shadow-black/5",u?"rounded-2xl border p-4 text-left shadow-sm backdrop-blur":"inline-flex items-center gap-2 rounded-full border px-3 py-2 text-sm backdrop-blur"),children:[e.icon&&(0,t.jsx)(n.SmartIcon,{name:e.icon,className:"text-primary h-4 w-4 shrink-0"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-foreground block text-sm font-medium",children:e.title}),e.description&&(0,t.jsx)("span",{className:"text-muted-foreground mt-1 block text-xs",children:e.description})]})]},`${e.title}-${i}`))}),S[26]=u,S[27]=T.items,S[28]=h):h=S[28],(0,t.jsxs)("section",{id:x,className:i,children:[a,s,(0,t.jsxs)("div",{className:"relative mx-auto flex w-full max-w-[1700px] flex-col items-center px-4 text-center md:px-6",children:[l,(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[R("text-foreground mx-auto max-w-5xl text-4xl font-semibold text-balance sm:text-[2.9rem] lg:text-[3.15rem] lg:leading-[0.98] xl:text-[3.45rem]"),o]}),c,m,h]})]})}let F=T.id;S[29]!==C||S[30]!==T.className?(u=(0,d.cn)("pt-24 pb-8 md:pt-36 md:pb-8",T.className,C),S[29]=C,S[30]=T.className,S[31]=u):u=S[31],S[32]!==O?(x=O(),S[32]=O,S[33]=x):x=S[33];let H=R("text-foreground text-4xl font-semibold text-balance sm:mt-12 sm:text-6xl"),W=T.description??"";return S[34]!==W?(g=(0,t.jsx)("p",{className:"text-muted-foreground mt-8 mb-8 text-lg text-balance",dangerouslySetInnerHTML:{__html:W}}),S[34]=W,S[35]=g):g=S[35],S[36]!==$?(f=$("flex items-center justify-center gap-4","px-4 text-sm"),S[36]=$,S[37]=f):f=S[37],S[38]!==T.tip?(y=T.tip&&(0,t.jsx)("p",{className:"text-muted-foreground mt-6 block text-center text-sm",dangerouslySetInnerHTML:{__html:T.tip??""}}),S[38]=T.tip,S[39]=y):y=S[39],S[40]!==T.avatars_tip||S[41]!==T.show_avatars?(w=T.show_avatars&&(0,t.jsx)(p,{tip:T.avatars_tip||""}),S[40]=T.avatars_tip,S[41]=T.show_avatars,S[42]=w):w=S[42],S[43]!==f||S[44]!==y||S[45]!==w||S[46]!==H||S[47]!==g?(j=(0,t.jsxs)("div",{className:"relative mx-auto max-w-full px-4 text-center md:max-w-5xl",children:[H,g,f,y,w]}),S[43]=f,S[44]=y,S[45]=w,S[46]=H,S[47]=g,S[48]=j):j=S[48],S[49]!==T.image||S[50]!==T.image_invert?(N=(T.image?.src||T.image_invert?.src)&&(0,t.jsx)("div",{className:"border-foreground
1/10 relative mt-8 border-y sm:mt-16",children:(0,t.jsx)("div",{className:"relative z-10 mx-auto max-w-6xl border-x px-3",children:(0,t.jsxs)("div",{className:"border-x",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"h-3 w-full opacity-5",style:{backgroundImage:"repeating-linear-gradient(-45deg,var(--color-foreground),var(--color-foreground) 1px,transparent 1px,transparent 4px)"}}),T.image_invert?.src&&(0,t.jsx)(r.default,{className:"border-border/25 relative z-2 hidden w-full border dark:block",src:T.image_invert.src,alt:T.image_invert.alt||T.image?.alt||"",width:T.image_invert.width||T.image?.width||1200,height:T.image_invert.height||T.image?.height||630,sizes:"(max-width: 768px) 100vw, 1200px",loading:"lazy",fetchPriority:"high",quality:75,unoptimized:T.image_invert.src.startsWith("http")}),T.image?.src&&(0,t.jsx)(r.default,{className:"border-border/25 relative z-2 block w-full border dark:hidden",src:T.image.src,alt:T.image.alt||T.image_invert?.alt||"",width:T.image.width||T.image_invert?.width||1200,height:T.image.height||T.image_invert?.height||630,sizes:"(max-width: 768px) 100vw, 1200px",loading:"lazy",fetchPriority:"high",quality:75,unoptimized:T.image.src.startsWith("http")})]})})}),S[49]=T.image,S[50]=T.image_invert,S[51]=N):N=S[51],S[52]!==T.background_image?(_=T.background_image?.src&&(0,t.jsxs)("div",{className:"absolute inset-0 -z-10 hidden h-full w-full overflow-hidden md:block",children:[(0,t.jsx)("div",{className:"from-background/80 via-background/80 to-background absolute inset-0 z-10 bg-gradient-to-b"}),(0,t.jsx)(r.default,{src:T.background_image.src,alt:T.background_image.alt||"",className:"object-cover opacity-60 blur-[0px]",fill:!0,loading:"lazy",sizes:"(max-width: 768px) 0vw, 100vw",quality:70,unoptimized:T.background_image.src.startsWith("http")})]}),S[52]=T.background_image,S[53]=_):_=S[53],S[54]!==T.id||S[55]!==j||S[56]!==N||S[57]!==_||S[58]!==u||S[59]!==x?(k=(0,t.jsxs)("section",{id:F,className:u,children:[x,j,N,_]}),S[54]=T.id,S[55]=j,S[56]=N,S[57]=_,S[58]=u,S[59]=x,S[60]=k):k=S[60],k}function b(e){return e.description}function v(e){return e?.split("\n").map(y)}function y(e,i,r){return(0,t.jsxs)("span",{children:[e,i<r.length-1&&(0,t.jsx)("br",{})]},`${e}-${i}`)}e.s(["Hero",()=>f],438037)},396489,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(374995),a=e.i(570172),s=e.i(866273),n=e.i(199978);e.i(741820);var l=e.i(799112),o=e.i(538630),c=e.i(642616),d=e.i(331597),m=e.i(600195),h=e.i(800928),u=e.i(526683);function p(e){let p,g,f,b,v,y,w,j,N,_,k,S,T,C,z,M,I=(0,i.c)(47),{header:E}=e,[L,A]=(0,r.useState)(!1),[P,R]=(0,r.useState)(null),$=(0,n.usePathname)();I[0]!==L?(p=()=>{let e=e=>{let t=document.getElementById("vertical-sidebar");L&&t&&!t.contains(e.target)&&(A(!1),R(null))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},g=[L],I[0]=L,I[1]=p,I[2]=g):(p=I[1],g=I[2]),(0,r.useEffect)(p,g),I[3]!==L?(f=()=>{A(!L),L&&R(null)},I[3]=L,I[4]=f):f=I[4];let O=f;I[5]!==P?(b=e=>{R(P===e?null:e)},I[5]=P,I[6]=b):b=I[6];let F=b,H=L?"w-64":"w-20";I[7]!==H?(v=(0,u.cn)("bg-background border-border h-screen flex-shrink-0 border-r transition-all duration-300 ease-in-out",H),I[7]=H,I[8]=v):v=I[8];let W=L?"justify-between":"justify-center";I[9]!==W?(y=(0,u.cn)("border-border flex items-center border-b p-4",W),I[9]=W,I[10]=y):y=I[10],I[11]!==E.brand||I[12]!==L?(w=L&&E.brand?(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(l.BrandLogo,{brand:E.brand})}):(0,t.jsxs)(h.Tooltip,{delayDuration:300,children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"group relative flex items-center justify-center",children:E.brand?.logo?.src&&(0,t.jsx)(n.Link,{href:E.brand.url||"/",className:"block",children:(0,t.jsx)("img",{src:E.brand.logo.src,alt:E.brand.logo.alt||"Logo",className:"h-8 w-8 object-contain"})})})}),(0,t.jsx)(h.TooltipContent,{side:"right",children:E.brand?.title})]}),I[11]=E.brand,I[12]=L,I[13]=w):w=I[13],I[14]!==y||I[15]!==w?(j=(0,t.jsx)("div",{className:y,children:w}),I[14]=y,I[15]=w,I[16]=j):j=I[16];let D=L&&"px-2";I[17]!==D?(N=(0,u.cn)("space-y-1",D),I[17]=D,I[18]=N):N=I[18],I[19]!==P||I[20]!==E.nav?.items||I[21]!==L||I[22]!==$||I[23]!==F?(_=E.nav?.items?.map((e,i)=>(0,t.jsx)("li",{children:e.children&&0!==e.children.length?(0,t.jsxs)("div",{children:[(0,t.jsxs)(h.Tooltip,{delayDuration:300,children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("button",{onClick:()=>{L||A(!0),F(e.title||"")},className:(0,u.cn)("group hover:bg-muted relative flex w-full items-center transition-colors",L?"rounded-md px-3 py-2":"justify-center py-2"),children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon,className:"h-5 w-5 flex-shrink-0"}),L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"ml-3 flex-1 text-left text-sm",children:e.title}),(0,t.jsx)(s.ChevronRight,{className:(0,u.cn)("h-4 w-4 transition-transform",P===e.title&&"rotate-90")})]})]})}),!L&&(0,t.jsx)(h.TooltipContent,{side:"right",children:e.title})]}),L&&P===e.title&&(0,t.jsx)("ul",{className:"border-border mt-1 ml-4 space-y-1 border-l pl-4",children:e.children?.map(x)})]}):(0,t.jsxs)(h.Tooltip,{delayDuration:300,children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)(n.Link,{href:e.url||"",target:e.target||"_self",className:(0,u.cn)("group hover:bg-muted relative flex items-center transition-colors",$.endsWith(e.url)&&"bg-muted text-muted-foreground",L?"rounded-md px-3 py-2":"w-full justify-center py-2"),children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon,className:"h-5 w-5 flex-shrink-0"}),L&&(0,t.jsx)("span",{className:"ml-3 text-sm",children:e.title})]})}),!L&&(0,t.jsx)(h.TooltipContent,{side:"right",children:e.title})]})},i)),I[19]=P,I[20]=E.nav?.items,I[21]=L,I[22]=$,I[23]=F,I[24]=_):_=I[24],I[25]!==N||I[26]!==_?
1(k=(0,t.jsx)("nav",{className:"scrollbar-hide flex-1 overflow-y-auto py-4",children:(0,t.jsx)("ul",{className:N,children:_})}),I[25]=N,I[26]=_,I[27]=k):k=I[27];let B=L?"space-y-3 p-4":"flex flex-col items-center justify-center space-y-1 py-2";return I[28]!==B?(S=(0,u.cn)("border-border border-t",B),I[28]=B,I[29]=S):S=I[29],I[30]!==E.show_locale||I[31]!==E.show_sign||I[32]!==E.show_theme||I[33]!==E.user_nav||I[34]!==L||I[35]!==O?(T=L?(0,t.jsxs)(t.Fragment,{children:[E.show_theme&&(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm",children:"Theme"}),(0,t.jsx)(m.ThemeToggler,{className:"hover:bg-muted inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full transition-colors [&_svg]:size-5"})]}),E.show_locale&&(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm",children:"Language"}),(0,t.jsx)(o.LocaleSelector,{})]}),E.show_sign&&(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm",children:"Sign In"}),(0,t.jsx)(c.SignUser,{userNav:E.user_nav})]}),(0,t.jsxs)("button",{onClick:O,className:"group flex w-full cursor-pointer items-center justify-between","aria-label":"Collapse sidebar",children:[(0,t.jsx)("span",{className:"group-hover:text-muted-foreground text-sm transition-colors",children:"Fold"}),(0,t.jsx)("div",{className:"hover:bg-muted inline-flex h-9 w-9 items-center justify-center rounded-full transition-colors",children:(0,t.jsx)(a.ChevronLeft,{className:"size-5"})})]})]}):(0,t.jsxs)(t.Fragment,{children:[E.show_theme&&(0,t.jsxs)(h.Tooltip,{delayDuration:300,children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"group relative",children:(0,t.jsx)(m.ThemeToggler,{className:"hover:bg-muted inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full transition-colors [&_svg]:size-5"})})}),(0,t.jsx)(h.TooltipContent,{side:"right",children:"Theme"})]}),E.show_locale&&(0,t.jsxs)(h.Tooltip,{delayDuration:300,children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"group relative",children:(0,t.jsx)(o.LocaleSelector,{})})}),(0,t.jsx)(h.TooltipContent,{side:"right",children:"Language"})]}),E.show_sign&&(0,t.jsxs)(h.Tooltip,{delayDuration:300,children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"group relative flex items-center justify-center",children:(0,t.jsx)(c.SignUser,{userNav:E.user_nav,signButtonSize:"icon"})})}),(0,t.jsx)(h.TooltipContent,{side:"right",children:"Sign In"})]}),(0,t.jsxs)(h.Tooltip,{delayDuration:300,children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{onClick:O,className:"hover:bg-muted inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full transition-colors","aria-label":"Expand sidebar",children:(0,t.jsx)(s.ChevronRight,{className:"size-5"})})}),(0,t.jsx)(h.TooltipContent,{side:"right",children:"Expand"})]})]}),I[30]=E.show_locale,I[31]=E.show_sign,I[32]=E.show_theme,I[33]=E.user_nav,I[34]=L,I[35]=O,I[36]=T):T=I[36],I[37]!==S||I[38]!==T?(C=(0,t.jsx)("div",{className:S,children:T}),I[37]=S,I[38]=T,I[39]=C):C=I[39],I[40]!==j||I[41]!==k||I[42]!==C?(z=(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[j,k,C]}),I[40]=j,I[41]=k,I[42]=C,I[43]=z):z=I[43],I[44]!==z||I[45]!==v?(M=(0,t.jsx)("aside",{id:"vertical-sidebar",className:v,children:z}),I[44]=z,I[45]=v,I[46]=M):M=I[46],M}function x(e,i){return(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url||"",target:e.target||"_self",className:"group hover:bg-muted relative flex items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors",children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon,className:"h-4 w-4 flex-shrink-0"}),(0,t.jsx)("span",{className:"text-sm",children:e.title})]})},i)}e.s(["VerticalSidebar",()=>p])},435624,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(819023);function a(e){let a,n,l,o,c,d,m,h=(0,i.c)(18),{section:u,className:p}=e,x=`py-12 md:py-24 ${u.className} ${p}`;return h[0]!==u.title?(a=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:u.title}),h[0]=u.title,h[1]=a):a=h[1],h[2]!==u.description?(n=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:u.description}),h[2]=u.description,h[3]=n):n=h[3],h[4]!==a||h[5]!==n?(l=(0,t.jsx)(r.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[a,n]})}),h[4]=a,h[5]=n,h[6]=l):l=h[6],h[7]!==u.items?(o=u.items?.map(s),h[7]=u.items,h[8]=o):o=h[8],h[9]!==o?(c=(0,t.jsx)(r.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"grid gap-12 divide-y *:text-center md:grid-cols-3 md:gap-2 md:divide-x md:divide-y-0",children:o})}),h[9]=o,h[10]=c):c=h[10],h[11]!==l||h[12]!==c?(d=(0,t.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[l,c]}),h[11]=l,h[12]=c,h[13]=d):d=h[13],h[14]!==u.id||h[15]!==x||h[16]!==d?(m=(0,t.jsx)("section",{id:u.id,className:x,children:d}),h[14]=u.id,h[15]=x,h[16]=d,h[17]=m):m=h[17],m}function s(e,i){return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,t.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,t.jsx)("p",{children:e.description})]},i)}e.s(["Stats",()=>a])},693287,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(331597),a=e.i(819023),s=e.i(526683);
1function n(e){let r,n,o,c,d,m,h,u,p=(0,i.c)(21),{section:x,className:g}=e,f=x.id;return p[0]!==g||p[1]!==x.className?(r=(0,s.cn)("py-16 md:py-24",x.className,g),p[0]=g,p[1]=x.className,p[2]=r):r=p[2],p[3]!==x.title?(n=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:x.title}),p[3]=x.title,p[4]=n):n=p[4],p[5]!==x.description?(o=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:x.description}),p[5]=x.description,p[6]=o):o=p[6],p[7]!==n||p[8]!==o?(c=(0,t.jsx)(a.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[n,o]})}),p[7]=n,p[8]=o,p[9]=c):c=p[9],p[10]!==x.items?(d=x.items?.map(l),p[10]=x.items,p[11]=d):d=p[11],p[12]!==d?(m=(0,t.jsx)(a.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"relative mx-auto grid divide-x divide-y border *:p-12 sm:grid-cols-2 lg:grid-cols-3",children:d})}),p[12]=d,p[13]=m):m=p[13],p[14]!==c||p[15]!==m?(h=(0,t.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[c,m]}),p[14]=c,p[15]=m,p[16]=h):h=p[16],p[17]!==x.id||p[18]!==r||p[19]!==h?(u=(0,t.jsx)("section",{id:f,className:r,children:h}),p[17]=x.id,p[18]=r,p[19]=h,p[20]=u):u=p[20],u}function l(e,i){return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.SmartIcon,{name:e.icon,size:24}),(0,t.jsx)("h3",{className:"text-sm font-medium",children:e.title})]}),(0,t.jsx)("p",{className:"text-sm",children:e.description})]},i)}e.s(["Features",()=>n])},32943,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(98160);e.i(741820);var a=e.i(24963),s=e.i(526683);function n(e){let n,l,o,c,d,m,h,u,p,x,g=(0,i.c)(29),{section:f}=e;if(!f.items||0===f.items.length)return null;let b=!0===f.disable_scroll_animation||!0===f.disable_section_reveal;g[0]!==b?(n=(e,t,i)=>b?{initial:!1,animate:t}:{initial:e,whileInView:t,viewport:void 0===i?{once:!0}:i},g[0]=b,g[1]=n):n=g[1];let v=n,y=f.id||f.name;if(g[2]!==f.className?(l=(0,s.cn)("py-16 md:py-24",f.className),g[2]=f.className,g[3]=l):l=g[3],g[4]!==b?(o=((e,t=!1)=>t?{initial:!1,animate:{opacity:1,y:0,filter:"blur(0px)"}}:{initial:{opacity:0,y:20,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:0,ease:[.22,1,.36,1]}})(0,b),g[4]=b,g[5]=o):o=g[5],g[6]!==f.sr_only_title?(c=f.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:f.sr_only_title}),g[6]=f.sr_only_title,g[7]=c):c=g[7],g[8]!==f.title?(d=(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:f.title}),g[8]=f.title,g[9]=d):d=g[9],g[10]!==f.description?(m=(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:f.description}),g[10]=f.description,g[11]=m):m=g[11],g[12]!==o||g[13]!==c||g[14]!==d||g[15]!==m?(h=(0,t.jsxs)(r.motion.div,{className:"container mb-12 text-center",...o,children:[c,d,m]}),g[12]=o,g[13]=c,g[14]=d,g[15]=m,g[16]=h):h=g[16],g[17]!==v||g[18]!==f.items){let e;g[20]!==v?(e=(e,i)=>{let n="right"===e.image_position;return(0,t.jsxs)(r.motion.div,{className:(0,s.cn)("grid items-center gap-6 py-16 sm:grid-cols-2 md:gap-12 lg:gap-24",n&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1"),...v({opacity:0,y:30},{opacity:1,y:0},{once:!0,margin:"-100px"}),transition:{duration:.6,delay:.15*i,ease:[.22,1,.36,1]},children:[(0,t.jsx)(r.motion.div,{...v({opacity:0,scale:.95},{opacity:1,scale:1}),transition:{duration:.5,delay:.15*i+.2,ease:[.22,1,.36,1]},children:(0,t.jsx)(a.LazyImage,{src:e.image?.src??"",className:"rounded-2xl",alt:e.image?.alt??""})}),(0,t.jsxs)(r.motion.div,{className:"relative space-y-4",...v({opacity:0,x:n?-20:20},{opacity:1,x:0}),transition:{duration:.5,delay:.15*i+.3,ease:[.22,1,.36,1]},children:[(0,t.jsx)("h3",{className:"text-xl font-medium md:text-2xl lg:text-2xl",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground",children:e.description})]})]},i)},g[20]=v,g[21]=e):e=g[21],u=f.items.map(e),g[17]=v,g[18]=f.items,g[19]=u}else u=g[19];return g[22]!==u?(p=(0,t.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:u}),g[22]=u,g[23]=p):p=g[23],g[24]!==p||g[25]!==y||g[26]!==l||g[27]!==h?(x=(0,t.jsxs)("section",{id:y,className:l,children:[h,p]}),g[24]=p,g[25]=y,g[26]=l,g[27]=h,g[28]=x):x=g[28],x}e.s(["FeaturesFlow",()=>n])},609639,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(996684),a=e.i(819023);function s(e){let r,s,l,o,c,d,m,h=(0,i.c)(18),{section:u,className:p}=e,x=`py-16 md:py-24 ${u.className} ${p}`;return h[0]!==u.title?(r=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:u.title}),h[0]=u.title,h[1]=r):r=h[1],h[2]!==u.description?(s=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:u.description}
1),h[2]=u.description,h[3]=s):s=h[3],h[4]!==r||h[5]!==s?(l=(0,t.jsx)(a.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[r,s]})}),h[4]=r,h[5]=s,h[6]=l):l=h[6],h[7]!==u.items?(o=u.items?.map((e,i)=>(0,t.jsx)(n,{item:e},i)),h[7]=u.items,h[8]=o):o=h[8],h[9]!==o?(c=(0,t.jsx)(a.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-px lg:*:nth-1:rounded-t-none lg:*:nth-2:rounded-tl-none lg:*:nth-2:rounded-br-none lg:*:nth-3:rounded-l-none lg:*:nth-4:rounded-r-none lg:*:nth-5:rounded-tl-none lg:*:nth-5:rounded-br-none lg:*:nth-6:rounded-b-none",children:o})})}),h[9]=o,h[10]=c):c=h[10],h[11]!==l||h[12]!==c?(d=(0,t.jsxs)("div",{className:"container",children:[l,c]}),h[11]=l,h[12]=c,h[13]=d):d=h[13],h[14]!==u.id||h[15]!==x||h[16]!==d?(m=(0,t.jsx)("section",{id:u.id,className:x,children:d}),h[14]=u.id,h[15]=x,h[16]=d,h[17]=m):m=h[17],m}function n(e){let{item:i}=e,a=[i.image?.src,i.avatar?.src].find(o),s=(i.name||i.title||"?").split(/\s+/).filter(Boolean).slice(0,2).map(l).join("");return(0,t.jsxs)("div",{className:"bg-card/25 ring-foreground/[0.07] flex flex-col justify-end gap-6 rounded-(--radius) border border-transparent p-8 ring-1",children:[(0,t.jsx)("p",{className:'text-foreground self-end text-balance before:mr-1 before:content-["\\201C"] after:ml-1 after:content-["\\201D"]',children:i.quote||i.description}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[a?(0,t.jsx)("div",{className:"ring-foreground/10 aspect-square size-9 overflow-hidden rounded-lg border border-transparent shadow-md ring-1 shadow-black/15",children:(0,t.jsx)(r.default,{src:a,alt:i.image?.alt||i.avatar?.alt||i.name||"",width:72,height:72,sizes:"36px",className:"h-full w-full object-cover"})}):(0,t.jsx)("div",{className:"from-primary/15 to-primary/5 text-primary ring-foreground/10 flex aspect-square size-9 items-center justify-center rounded-lg border border-transparent bg-gradient-to-br text-xs font-semibold shadow-md ring-1 shadow-black/15",children:s}),(0,t.jsxs)("h3",{className:"sr-only",children:[i.name,", ",i.role||i.title]}),(0,t.jsxs)("div",{className:"space-y-px",children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[i.name," "]}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:i.role||i.title})]})]})]})}function l(e){return e[0]?.toUpperCase()}function o(e){return"string"==typeof e&&e.trim().length>0}e.s(["Testimonials",()=>s])},387115,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(366255),a=e.i(896176),s=e.i(802270),n=e.i(569164);e.i(741820);var l=e.i(111643),o=e.i(765733);function c(e){let c,d,m,h,u,p,x,g,f,b,v,y,w,j,N,_,k,S,T,C,z=(0,i.c)(56),{post:M}=e,I=(0,n.useTranslations)("pages.blog.messages");z[0]!==I?(c=I("crumb"),z[0]=I,z[1]=c):c=z[1],z[2]!==c?(d={title:c,url:"/blog",icon:"Newspaper",is_active:!1},z[2]=c,z[3]=d):d=z[3];let E=M.title||"",L=`/blog/${M.slug}`;z[4]!==E||z[5]!==L?(m={title:E,url:L,is_active:!0},z[4]=E,z[5]=L,z[6]=m):m=z[6],z[7]!==d||z[8]!==m?(h=[d,m],z[7]=d,z[8]=m,z[9]=h):h=z[9];let A=h,P=M.toc&&M.toc.length>0,R=M.author_name||M.author_image||M.author_role;z[10]!==R||z[11]!==P?(u=()=>P&&R?"lg:col-span-6":P||R?"lg:col-span-9":"lg:col-span-12",z[10]=R,z[11]=P,z[12]=u):u=z[12];let $=u;z[13]!==M.toc?(p=M.toc||[],z[13]=M.toc,z[14]=p):p=z[14];let O=M.id;z[15]!==A?(x=(0,t.jsx)(o.Crumb,{items:A}),z[15]=A,z[16]=x):x=z[16],z[17]!==M.title?(g=(0,t.jsx)("h1",{className:"text-foreground mx-auto mb-4 w-full text-3xl font-bold md:max-w-4xl md:text-4xl",children:M.title}),z[17]=M.title,z[18]=g):g=z[18],z[19]!==M.created_at?(f=M.created_at&&(0,t.jsxs)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-2",children:[(0,t.jsx)(a.CalendarIcon,{className:"size-4"})," ",M.created_at]}),z[19]=M.created_at,z[20]=f):f=z[20],z[21]!==f?(b=(0,t.jsx)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-4",children:f}),z[21]=f,z[22]=b):b=z[22],z[23]!==g||z[24]!==b?(v=(0,t.jsxs)("div",{className:"mt-16 text-center",children:[g,b]}),z[23]=g,z[24]=b,z[25]=v):v=z[25],z[26]!==P||z[27]!==I?(y=P&&(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,t.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,t.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,t.jsx)(s.ListIcon,{className:"size-4"})," ",I("toc")]}),(0,t.jsx)(r.TOCItems,{})]})})}),z[26]=P,z[27]=I,z[28]=y):y=z[28];let F=$();return z[29]!==M.body||z[30]!==M.content?(w=M.body?(0,t.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:M.body}):M.content&&(0,t.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,t.jsx)(l.MarkdownPreview,{content:M.content})}),z[29]=M.body,z[30]=M.content,z[31]=w):w=z[31],z[32]!==w?(j=(0,t.jsx)("article",{className:"p-0",children:w}),z[32]=w,z[33]=j):j=z[33],z[34]!==F||z[35]!==j?(N=(0,t.jsx)("div",{className:F,children:j}),z[34]=F,z[35]=j,z[36]=N):N=z[36],z[37]!==M.author_image||z[38]!==M.author_name||z[39]!==M.author_role||z[40]!==R?(_=R&&(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky top-24",children:(0,t.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,t.jsxs)("div",{className:"text-center",children:[M.author_image&&(0,t.jsx)("div",{className:"ring-foreground
1/10 mx-auto mb-4 aspect-square size-20 overflow-hidden rounded-xl border border-transparent shadow-md ring-1 shadow-black/15",children:(0,t.jsx)("img",{src:M.author_image,alt:M.author_name,className:"h-full w-full object-cover"})}),M.author_name&&(0,t.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:M.author_name}),M.author_role&&(0,t.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:M.author_role})]})})})}),z[37]=M.author_image,z[38]=M.author_name,z[39]=M.author_role,z[40]=R,z[41]=_):_=z[41],z[42]!==y||z[43]!==N||z[44]!==_?(k=(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[y,N,_]}),z[42]=y,z[43]=N,z[44]=_,z[45]=k):k=z[45],z[46]!==x||z[47]!==v||z[48]!==k?(S=(0,t.jsx)("div",{className:"py-24 md:py-32",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[x,v,k]})}),z[46]=x,z[47]=v,z[48]=k,z[49]=S):S=z[49],z[50]!==M.id||z[51]!==S?(T=(0,t.jsx)("section",{id:O,children:S}),z[50]=M.id,z[51]=S,z[52]=T):T=z[52],z[53]!==T||z[54]!==p?(C=(0,t.jsx)(r.TOCProvider,{toc:p,children:T}),z[53]=T,z[54]=p,z[55]=C):C=z[55],C}e.s(["BlogDetail",()=>c])},417374,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(374995),a=e.i(996684),s=e.i(98160),n=e.i(199978),l=e.i(331597),o=e.i(511398),c=e.i(686247),d=e.i(526683);function m(e){let m,h,u,p,x,g,f,b,v,y,w,j,N,_,k,S,T,C=(0,i.c)(63),{section:z,className:M}=e,I=!0===z.compact_cards,E=!0===z.hide_header||I;C[0]!==z?(m="number"==typeof z.columns_md&&Number.isFinite(z.columns_md)?Math.max(1,Math.floor(z.columns_md)):2,C[0]=z,C[1]=m):m=C[1];let L=m;C[2]!==z?(h="number"==typeof z.columns&&Number.isFinite(z.columns)?Math.max(1,Math.floor(z.columns)):1,C[2]=z,C[3]=h):h=C[3];let A=h;C[4]!==z?(u="number"==typeof z.columns_lg&&Number.isFinite(z.columns_lg)?Math.max(1,Math.floor(z.columns_lg)):3,C[4]=z,C[5]=u):u=C[5];let P=u,R=!0===z.match_image_aspect_ratio;C[6]!==z?(p=z.groups||[],C[6]=z,C[7]=p):p=C[7];let $=p,[O,F]=(0,r.useState)($.length>0?$[0].name:"");C[8]===Symbol.for("react.memo_cache_sentinel")?(x={},C[8]=x):x=C[8];let[H,W]=(0,r.useState)(x),D=!0===z.disable_scroll_animation||!0===z.disable_section_reveal;e:{let e;if(!z.items){let e;C[9]===Symbol.for("react.memo_cache_sentinel")?(e=[],C[9]=e):e=C[9],g=e;break e}if(!O||!$.length||"all"===O){g=z.items;break e}if(C[10]!==z.items||C[11]!==O){let t;C[13]!==O?(t=e=>e.group===O,C[13]=O,C[14]=t):t=C[14],e=z.items.filter(t),C[10]=z.items,C[11]=O,C[12]=e}else e=C[12];g=e}let B=g;C[15]!==D?(f=(e,t,i)=>D?{initial:!1,animate:t}:{initial:e,whileInView:t,viewport:void 0===i?{once:!0}:i},C[15]=D,C[16]=f):f=C[16];let U=f;C[17]!==H?(b=e=>{let t=e.image?.src??"";if(!t)return{width:1200,height:630};let i=Number(e.image?.width),r=Number(e.image?.height);return Number.isFinite(i)&&Number.isFinite(r)&&i>0&&r>0?{width:i,height:r}:H[t]||{width:1200,height:630}},C[17]=H,C[18]=b):b=C[18];let q=b;C[19]!==q?(v=e=>{let{width:t,height:i}=q(e);return`${t} / ${i}`},C[19]=q,C[20]=v):v=C[20];let V=v;C[21]===Symbol.for("react.memo_cache_sentinel")?(y=(e,t,i)=>{t&&i&&W(r=>{let a=e.image?.src??"";if(!a)return r;let s={width:t,height:i},n=r[a];return n?.width===s.width&&n?.height===s.height?r:{...r,[a]:s}})},C[21]=y):y=C[21];let J=y,G=z.id||z.name,X=I?"py-10 md:py-12":"py-24 md:py-36";C[22]!==M||C[23]!==z.className||C[24]!==X?(w=(0,d.cn)(X,z.className,M),C[22]=M,C[23]=z.className,C[24]=X,C[25]=w):w=C[25],C[26]!==U||C[27]!==E||C[28]!==z.description||C[29]!==z.sr_only_title||C[30]!==z.title?(j=!E&&(0,t.jsxs)(s.motion.div,{className:"container mb-12 text-center",...U({opacity:0,y:20},{opacity:1,y:0}),transition:{duration:.6,ease:[.22,1,.36,1]},children:[z.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:z.sr_only_title}),(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:z.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:z.description})]}),C[26]=U,C[27]=E,C[28]=z.description,C[29]=z.sr_only_title,C[30]=z.title,C[31]=j):j=C[31],C[32]!==U||C[33]!==$||C[34]!==O?(N=$.length>0&&(0,t.jsx)(s.motion.div,{className:"container mb-12 flex flex-wrap justify-center gap-4",...U({opacity:0,y:20},{opacity:1,y:0}),transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},children:$.map((e,i)=>{let r=O===e.name;return(0,t.jsx)(s.motion.button,{onClick:()=>F(e.name),className:(0,d.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",r?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),...U({opacity:0,scale:.9},{opacity:1,scale:1}),transition:{duration:.4,delay:.2+.1*i,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,t.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,t.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,t.jsx)("span",{children:e.title})},e.name)})}),C[32]=U,C[33]=$,C[34]=O,C[35]=N):N=C[35];let K=1===A&&"grid-cols-1",Q=2===A&&"grid-cols-2",Y=3===A&&"grid-cols-3",Z=2===L&&"md:grid-cols-2",ee=3===L&&"md:grid-cols-3",et=4===L&&"md:grid-cols-4",ei=2===P&&"lg:grid-cols-2",er=3===P&&"lg:grid-cols-3",ea=4===P&&"lg:grid-cols-4",es=5===P&&"lg:grid-cols-5";return C[36]!==K||C[37]!==Q||C[38]!==Y||C[39]!==Z||C[40]!==ee||C[41]!==et||C[42]!==ei||C[43]!==er||C[44]!==ea||C[45]!==es?(_=(0,d.cn)("container grid gap-4",K,Q,Y,Z,ee,et,ei,er,ea,es),C[36]=K,C[37]=Q,C[38]=Y,C[39]=Z,C[40]=ee,C[41]=et,C[42]=ei,C[43]=er,C[44]=ea,C[45]=es,C[46]=_):_=C[46],C[47]!==I||C[48]!==B||C[49]!==V||C[50]!==q||C[51]!==U||C[52]!==R?(k=B.length>0?B.map((e,i)=>{let r=!!e.button,m=q(e),h=(0,t.jsx)(s.motion.div,{...U({opacity:0,y:30},{opacity:1,y:0},{once:!0,margin:"-50px"}),transition:{duration:.6,delay:.1*i,ease:[.22,1,.36,1]},children:(0,t.jsx)(c.Card,{className:(0,d.cn)("dark:hover:shadow-
1primary/10 overflow-hidden p-0 transition-all hover:shadow-lg",I&&"rounded-xl"),children:(0,t.jsxs)(c.CardContent,{className:"p-0",children:[R?(0,t.jsx)(s.motion.div,{className:"bg-muted/40 overflow-hidden rounded-t-lg",whileHover:{scale:1.05},transition:{duration:.3},children:(0,t.jsx)("img",{src:e.image?.src??"",alt:e.image?.alt??"",width:m.width,height:m.height,className:"block h-auto w-full rounded-t-lg",onLoad:t=>{let i=t.currentTarget;J(e,i?.naturalWidth||0,i?.naturalHeight||0)}})}):(0,t.jsx)(s.motion.div,{className:"bg-muted/40 relative w-full overflow-hidden rounded-t-lg",style:{aspectRatio:V(e)},whileHover:{scale:1.05},transition:{duration:.3},children:(0,t.jsx)(a.default,{src:e.image?.src??"",alt:e.image?.alt??"",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",fill:!0,unoptimized:!!e.image?.src?.startsWith("http"),className:"rounded-t-lg object-contain transition-transform duration-300",onLoad:t=>{let i=t.currentTarget;J(e,i?.naturalWidth||0,i?.naturalHeight||0)}})}),(0,t.jsxs)("div",{className:(0,d.cn)(I?"p-3 sm:p-4":"p-6"),children:[(0,t.jsx)("h3",{className:(0,d.cn)("mb-2 font-semibold text-balance",I?"text-sm leading-5 line-clamp-none md:line-clamp-1 md:text-lg":"text-xl line-clamp-1"),children:e.title}),(0,t.jsx)("p",{className:(0,d.cn)("text-muted-foreground line-clamp-3",I?"text-xs":"text-sm"),dangerouslySetInnerHTML:{__html:e.description??""}}),r&&(0,t.jsx)("div",{className:(0,d.cn)(I?"mt-3":"mt-4"),children:(0,t.jsx)(o.Button,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:(0,d.cn)("bg-primary hover:bg-primary/90 w-full border-0 font-medium text-white",I?"h-7 px-2.5 py-1 text-xs":"h-8 px-3 py-1.5 text-sm"),children:(0,t.jsxs)(n.Link,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,t.jsx)(l.SmartIcon,{name:e.button.icon,className:"text-white"}),e.button.title]})})})]})]})})});return r?(0,t.jsx)("div",{children:h},i):(0,t.jsx)(n.Link,{href:e.url||"",target:e.target,children:h},i)}):(0,t.jsx)(s.motion.div,{className:"text-muted-foreground col-span-full text-center",...U({opacity:0},{opacity:1}),transition:{duration:.4},children:"No items found in this category."}),C[47]=I,C[48]=B,C[49]=V,C[50]=q,C[51]=U,C[52]=R,C[53]=k):k=C[53],C[54]!==_||C[55]!==k?(S=(0,t.jsx)("div",{className:_,children:k}),C[54]=_,C[55]=k,C[56]=S):S=C[56],C[57]!==G||C[58]!==w||C[59]!==j||C[60]!==N||C[61]!==S?(T=(0,t.jsxs)("section",{id:G,className:w,children:[j,N,S]}),C[57]=G,C[58]=w,C[59]=j,C[60]=N,C[61]=S,C[62]=T):T=C[62],T}e.s(["Showcases",()=>m])},471061,e=>{"use strict";var t=e.i(883580),i=e.i(374995),r=e.i(462297),a=e.i(739805),s=e.i(856049),n=e.i(779342),l=e.i(511398),o=e.i(819023),c=e.i(526683);function d({section:e,className:d}){let[m,h]=(0,i.useState)(""),[u,p]=(0,i.useState)(!1),x=async()=>{if(m&&e.submit?.action)try{p(!0);let t=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:m})});if(!t.ok)throw Error(`request failed with status ${t.status}`);let{code:i,message:r,data:a}=await t.json();if(0!==i)throw Error(r);p(!1),r&&n.toast.success(r)}catch(e){p(!1),n.toast.error(e.message||"subscribe failed")}};return(0,t.jsx)("section",{id:e.id,className:(0,c.cn)("py-16 md:py-24",e.className,d),children:(0,t.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(o.ScrollAnimation,{children:(0,t.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:e.title})}),(0,t.jsx)(o.ScrollAnimation,{delay:.15,children:(0,t.jsx)("p",{className:"mt-4",children:e.description})}),(0,t.jsx)(o.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,t.jsxs)("div",{className:"bg-background has-[input:focus]:ring-muted relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-[calc(var(--radius)+0.75rem)] border pr-3 shadow shadow-zinc-950/5 has-[input:focus]:ring-2",children:[(0,t.jsx)(a.Mail,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,t.jsx)("input",{placeholder:e.submit?.input?.placeholder||"Enter your email",className:"h-14 w-full bg-transparent pl-12 focus:outline-none",type:"email",required:!0,"aria-required":"true","aria-invalid":!m,"aria-describedby":"email-error",value:m,onChange:e=>h(e.target.value)}),e.submit?.button&&(0,t.jsx)("div",{className:"md:pr-1.5 lg:pr-0",children:(0,t.jsxs)(l.Button,{"aria-label":"submit",className:"rounded-(--radius)",onClick:x,disabled:u,type:"submit",children:[u?(0,t.jsx)(r.Loa
1der2,{className:"animate-spin"}):(0,t.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}),(0,t.jsx)(s.SendHorizonal,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}e.s(["Subscribe",()=>d])},944560,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(199978),a=e.i(331597),s=e.i(511398),n=e.i(819023),l=e.i(510305),o=e.i(526683);function c(e){let c,d,m,h,u,p,x,g=(0,i.c)(22),{section:f,className:b}=e,{shouldOpenPricingModal:v,openBrowsePricingModal:y,prefetchPricingModal:w}=(0,l.usePricingLink)(),j=f.id;g[0]!==b||g[1]!==f.className?(c=(0,o.cn)("py-16 md:py-24",f.className,b),g[0]=b,g[1]=f.className,g[2]=c):c=g[2],g[3]!==f.title?(d=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:f.title})}),g[3]=f.title,g[4]=d):d=g[4];let N=f.description??"";return g[5]!==N?(m=(0,t.jsx)(n.ScrollAnimation,{delay:.15,children:(0,t.jsx)("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:N}})}),g[5]=N,g[6]=m):m=g[6],g[7]!==y||g[8]!==w||g[9]!==f.buttons||g[10]!==v?(h=f.buttons?.map((e,i)=>(0,t.jsx)(s.Button,{size:e.size||"default",variant:e.variant||"default",type:v(e.url)?"button":void 0,asChild:!v(e.url),onClick:v(e.url)?y:void 0,onMouseEnter:v(e.url)?w:void 0,onFocus:v(e.url)?w:void 0,children:v(e.url)?(0,t.jsxs)("span",{className:"inline-flex items-center justify-center gap-2 whitespace-nowrap",children:[e.icon&&(0,t.jsx)(a.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]}):(0,t.jsxs)(r.Link,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(a.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]})},i)),g[7]=y,g[8]=w,g[9]=f.buttons,g[10]=v,g[11]=h):h=g[11],g[12]!==h?(u=(0,t.jsx)(n.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:h})}),g[12]=h,g[13]=u):u=g[13],g[14]!==d||g[15]!==m||g[16]!==u?(p=(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"text-center",children:[d,m,u]})}),g[14]=d,g[15]=m,g[16]=u,g[17]=p):p=g[17],g[18]!==f.id||g[19]!==c||g[20]!==p?(x=(0,t.jsx)("section",{id:j,className:c,children:p}),g[18]=f.id,g[19]=c,g[20]=p,g[21]=x):x=g[21],x}e.s(["Cta",()=>c])},550974,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(374995),a=e.i(339191),s=e.i(98160);e.i(741820);var n=e.i(24963),l=e.i(331597),o=e.i(533480),c=e.i(184499),d=e.i(819023),m=e.i(526683);function h(e){let l,h,p,x,g,f,b,v,y,w,j,N,_,k,S,T,C,z,M,I,E=(0,i.c)(41),{section:L,className:A}=e,[P,R]=(0,r.useState)("item-1");E[0]!==L.items?(l={},L.items?.forEach((e,t)=>{l[`item-${t+1}`]={image:e.image?.src??"",alt:e.image?.alt||e.title||""}}),E[0]=L.items,E[1]=l):l=E[1],E[2]!==A||E[3]!==L.className?(h=(0,m.cn)("overflow-x-hidden py-16 md:py-24",L.className,A),E[2]=A,E[3]=L.className,E[4]=h):h=E[4],E[5]!==L.title?(p=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:L.title}),E[5]=L.title,E[6]=p):p=E[6],E[7]!==L.description?(x=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:L.description}),E[7]=L.description,E[8]=x):x=E[8],E[9]!==p||E[10]!==x?(g=(0,t.jsx)(d.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[p,x]})}),E[9]=p,E[10]=x,E[11]=g):g=E[11],E[12]===Symbol.for("react.memo_cache_sentinel")?(f=e=>R(e),E[12]=f):f=E[12],E[13]!==L.items?(b=L.items?.map(u),E[13]=L.items,E[14]=b):b=E[14],E[15]!==P||E[16]!==b?(v=(0,t.jsx)(d.ScrollAnimation,{delay:.1,direction:"left",children:(0,t.jsx)(c.Accordion,{type:"single",value:P,onValueChange:f,className:"w-full",children:b})}),E[15]=P,E[16]=b,E[17]=v):v=E[17],E[18]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)("div",{className:"absolute inset-0 right-0 ml-auto w-15 border-l",style:{backgroundImage:"repeating-linear-gradient(-45deg,var(--color-border),var(--color-border) 1px,transparent 1px,transparent 8px)"}}),E[18]=y):y=E[18];let $=`${P}-id`;E[19]===Symbol.for("react.memo_cache_sentinel")?(w={opacity:0,y:6,scale:.98},j={opacity:1,y:0,scale:1},N={opacity:0,y:6,scale:.98},_={duration:.2},E[19]=w,E[20]=j,E[21]=N,E[22]=_):(w=E[19],j=E[20],N=E[21],_=E[22]);let O=l[P],F=l[P];return E[23]!==O.image||E[24]!==F.alt?(k=(0,t.jsx)(n.LazyImage,{src:O.image,className:"size-full object-cover object-left-top dark:mix-blend-lighten",alt:F.alt}),E[23]=O.image,E[24]=F.alt,E[25]=k):k=E[25],E[26]!==k||E[27]!==$?(S=(0,t.jsx)("div",{className:"bg-background relative aspect-76/59 w-full min-w-0 rounded-2xl sm:w-[calc(3/4*100%+3rem)]",children:(0,t.jsx)(a.AnimatePresence,{mode:"wait",children:(0,t.jsx)(s.motion.div,{initial:w,animate:j,exit:N,transition:_,className:"size-full overflow-hidden rounded-2xl border shadow-md",children:k},$)}
1)}),E[26]=k,E[27]=$,E[28]=S):S=E[28],E[29]===Symbol.for("react.memo_cache_sentinel")?(T=(0,t.jsx)(o.BorderBeam,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"}),E[29]=T):T=E[29],E[30]!==S?(C=(0,t.jsx)(d.ScrollAnimation,{delay:.2,direction:"right",children:(0,t.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-3xl border p-2",children:[y,S,T]})}),E[30]=S,E[31]=C):C=E[31],E[32]!==C||E[33]!==v?(z=(0,t.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[v,C]}),E[32]=C,E[33]=v,E[34]=z):z=E[34],E[35]!==z||E[36]!==g?(M=(0,t.jsxs)("div",{className:"container space-y-8 overflow-x-hidden px-2 sm:px-6 md:space-y-16 lg:space-y-20 dark:[--color-border:color-mix(in_oklab,var(--color-white)_10%,transparent)]",children:[g,z]}),E[35]=z,E[36]=g,E[37]=M):M=E[37],E[38]!==h||E[39]!==M?(I=(0,t.jsx)("section",{className:h,children:M}),E[38]=h,E[39]=M,E[40]=I):I=E[40],I}function u(e,i){return(0,t.jsxs)(c.AccordionItem,{value:`item-${i+1}`,children:[(0,t.jsx)(c.AccordionTrigger,{children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,t.jsx)(l.SmartIcon,{name:e.icon,size:24}),e.title]})}),(0,t.jsx)(c.AccordionContent,{children:e.description})]},i)}e.s(["FeaturesAccordion",()=>h])},223833,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(199978);e.i(741820);var a=e.i(24963),s=e.i(331597),n=e.i(511398),l=e.i(819023),o=e.i(526683);function c(e){let r,s,n,c,h,u,p,x,g,f,b,v=(0,i.c)(29),{section:y,className:w}=e;v[0]!==w||v[1]!==y.className?(r=(0,o.cn)("overflow-x-hidden py-16 md:py-24",y.className,w),v[0]=w,v[1]=y.className,v[2]=r):r=v[2];let j=y.image?.src??"",N=y.image?.alt??"";return v[3]!==j||v[4]!==N?(s=(0,t.jsx)(l.ScrollAnimation,{direction:"left",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-[500px] flex-shrink-0 md:mx-0",children:(0,t.jsx)(a.LazyImage,{src:j,alt:N,className:"h-auto w-full rounded-lg object-cover"})})}),v[3]=j,v[4]=N,v[5]=s):s=v[5],v[6]!==y.title?(n=(0,t.jsx)(l.ScrollAnimation,{delay:.1,children:(0,t.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:y.title})}),v[6]=y.title,v[7]=n):n=v[7],v[8]!==y.description?(c=(0,t.jsx)(l.ScrollAnimation,{delay:.2,children:(0,t.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:y.description})}),v[8]=y.description,v[9]=c):c=v[9],v[10]!==y.buttons?(h=y.buttons&&y.buttons.length>0&&(0,t.jsx)(l.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:y.buttons?.map(m)})}),v[10]=y.buttons,v[11]=h):h=v[11],v[12]!==n||v[13]!==c||v[14]!==h?(u=(0,t.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[n,c,h]}),v[12]=n,v[13]=c,v[14]=h,v[15]=u):u=v[15],v[16]!==s||v[17]!==u?(p=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-8 pb-12 md:gap-24",children:[s,u]}),v[16]=s,v[17]=u,v[18]=p):p=v[18],v[19]!==y.items?(x=y.items?.map(d),v[19]=y.items,v[20]=x):x=v[20],v[21]!==x?(g=(0,t.jsx)(l.ScrollAnimation,{delay:.1,children:(0,t.jsx)("div",{className:"relative grid min-w-0 grid-cols-1 gap-x-3 gap-y-6 border-t pt-12 break-words sm:grid-cols-2 sm:gap-6 lg:grid-cols-4",children:x})}),v[21]=x,v[22]=g):g=v[22],v[23]!==g||v[24]!==p?(f=(0,t.jsxs)("div",{className:"container overflow-x-hidden",children:[p,g]}),v[23]=g,v[24]=p,v[25]=f):f=v[25],v[26]!==r||v[27]!==f?(b=(0,t.jsx)("section",{className:r,children:f}),v[26]=r,v[27]=f,v[28]=b):b=v[28],b}function d(e,i){return(0,t.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,t.jsx)(s.SmartIcon,{name:e.icon,size:16}),(0,t.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,t.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:e.description??""})]},i)}function m(e,i){return(0,t.jsx)(n.Button,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,t.jsxs)(r.Link,{href:e.url??"",target:e.target??"_self",className:(0,o.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-9 px-4 py-2","bg-background ring-foreground
1/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200"),children:[e.icon&&(0,t.jsx)(s.SmartIcon,{name:e.icon,size:24}),e.title]})},i)}e.s(["FeaturesList",()=>c])},44625,e=>{"use strict";let t="pac:redirect-generation-payload:v1";e.s(["clearRedirectGenerationPayload",0,()=>{window.sessionStorage.removeItem(t)},"readRedirectGenerationPayload",0,()=>{try{let e=window.sessionStorage.getItem(t);if(!e)return null;let i=JSON.parse(e);if(!i||"string"!=typeof i.toolSlug||!i.toolSlug.trim()||!i.componentData||"object"!=typeof i.componentData||"number"!=typeof i.createdAt||Date.now()-i.createdAt>6e5)return window.sessionStorage.removeItem(t),null;return i}catch{return window.sessionStorage.removeItem(t),null}},"writeRedirectGenerationPayload",0,e=>{window.sessionStorage.setItem(t,JSON.stringify(e))}])},30444,656188,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(275402),a=e.i(778127);let s=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}];function n(e){let n,l,o,c,d,m,h,u,p,x,g,f=(0,i.c)(40),{config:b,value:v,onChange:y,locale:w,disabled:j,error:N,className:_}=e,k=void 0!==j&&j,S=void 0===_?"":_;if(f[0]!==b||f[1]!==w){let e=(0,r.resolvePacLocale)(w);n=("string"==typeof b?.label?b.label:"")||(0,r.getPacI18nValue)(b,e,"label")||"Quality",l=(0,r.getPacI18nValue)(b,e,"helpText"),f[0]=b,f[1]=w,f[2]=n,f[3]=l}else n=f[2],l=f[3];let T=l,C=!!b?.hideLabel,z=!!b?.hideHelpText;if(f[4]!==S||f[5]!==b||f[6]!==k||f[7]!==N||f[8]!==T||f[9]!==z||f[10]!==C||f[11]!==n||f[12]!==y||f[13]!==v){u=Symbol.for("react.early_return_sentinel");e:{let e,i,r=(i=[],(Array.isArray(b?.options)?b.options:[]).forEach(e=>{if("string"==typeof e)return void i.push({value:e,label:e});if(e&&"object"==typeof e){let t="string"==typeof e.value?e.value:"string"==typeof e.id?e.id:"";if(!t)return;i.push({value:t,label:e.label||t})}}),i.length>0?i:s),l="string"==typeof v&&v?v:r[0]?.value??"medium";f[20]!==k||f[21]!==y?(e=e=>{k||y?.(e)},f[20]=k,f[21]=y,f[22]=e):e=f[22];let p=e;if(b?.presentation==="select"){u=(0,t.jsx)(a.CompactOptionSelect,{className:`pac-quality-selector ${S}`,label:n,helpText:T,value:l,options:r,onChange:p,disabled:k,error:N,hideLabel:!!b?.hideLabel,hideHelpText:!!b?.hideHelpText,menuTitle:b?.menuTitle,autoWidth:!!b?.autoWidth});break e}d=`pac-quality-selector ${S}`,f[23]!==C||f[24]!==n?(m=C?null:(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:n}),f[23]=C,f[24]=n,f[25]=m):m=f[25],f[26]!==T||f[27]!==z?(h=T&&!z&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:T}),f[26]=T,f[27]=z,f[28]=h):h=f[28],o="flex flex-nowrap gap-2 overflow-x-auto pb-1",c=r.map(e=>{let i=l===e.value;return(0,t.jsx)("button",{type:"button",onClick:()=>p(e.value),disabled:k,"aria-label":C?`${n}: ${e.label}`:void 0,title:e.label,className:`px-3 py-2 rounded-lg text-sm font-semibold transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-primary disabled:opacity-50 disabled:cursor-not-allowed ${i?"bg-primary text-primary-foreground ring-2 ring-primary":"bg-muted text-muted-foreground hover:bg-primary/5 hover:text-primary"}`,children:e.label},e.value)})}f[4]=S,f[5]=b,f[6]=k,f[7]=N,f[8]=T,f[9]=z,f[10]=C,f[11]=n,f[12]=y,f[13]=v,f[14]=o,f[15]=c,f[16]=d,f[17]=m,f[18]=h,f[19]=u}else o=f[14],c=f[15],d=f[16],m=f[17],h=f[18],u=f[19];return u!==Symbol.for("react.early_return_sentinel")?u:(f[29]!==o||f[30]!==c?(p=(0,t.jsx)("div",{className:o,children:c}),f[29]=o,f[30]=c,f[31]=p):p=f[31],f[32]!==N?(x=N&&(0,t.jsx)("p",{className:"mt-2 text-sm text-destructive",children:N}),f[32]=N,f[33]=x):x=f[33],f[34]!==p||f[35]!==x||f[36]!==d||f[37]!==m||f[38]!==h?(g=(0,t.jsxs)("div",{className:d,children:[m,h,p,x]}),f[34]=p,f[35]=x,f[36]=d,f[37]=m,f[38]=h,f[39]=g):g=f[39],g)}e.s(["QualitySelector",()=>n],30444);var l=e.i(463209),o=e.i(526683),c=e.i(494764);let d={en:{label:"Favorite",addTitle:"Add to Favorite",removeTitle:"Remove from Favorite"},es:{label:"Favorito",addTitle:"Añadir a favoritos",removeTitle:"Quitar de favoritos"},fr:{label:"Favori",addTitle:"Ajouter aux favoris",removeTitle:"Retirer des favoris"},ja:{label:"ãæ°ã«å
¥ã",addTitle:"ãæ°ã«å
¥ãã«è¿½å ",removeTitle:"ãæ°ã«å
¥ãããåé¤"},ru:{label:"РизбÑанное",addTitle:"ÐобавиÑÑ Ð² избÑанное",removeTitle:"УдалиÑÑ Ð¸Ð· избÑанного"},de:{label:"Favorit",addTitle:"Zu Favoriten hinzufügen",removeTitle:"Aus Favoriten entfernen"},ar:{label:"اÙÙ
ÙØ¶ÙØ©",addTitle:"Ø¥Ø¶Ø§ÙØ© Ø¥Ù٠اÙÙ
ÙØ¶ÙØ©",removeTitle:"Ø¥Ø²Ø§ÙØ© Ù
٠اÙÙ
ÙØ¶ÙØ©"},zh:{label:"æ¶è",addTitle:"å å
¥æ¶è",removeTitle:"åæ¶æ¶è"},ko:{label:"ì¦ê²¨ì°¾ê¸°",addTitle:"ì¦ê²¨ì°¾ê¸°ì ì¶ê°",removeTitle:"ì¦ê²¨ì°¾ê¸°ìì ì ê±°"}};function m(e){let r,a,s,n,m,h,u,p,x,g,f,b=(0,i.c)(40),{url:v,title:y,icon:w,group:j,locale:N,className:_}=e,{isFavourite:k,toggleFavourite:S}=(0,c.useFavouriteTools)();if(b[0]!==_||b[1]!==j||b[2]!==w||b[3]!==k||b[4]!==N||b[5]!==y||b[6]!==S||b[7]!==v){let e,t=k(v);b[16]!==N?(e=d[N||"en"]||d.en,b[16]=N,b[17]=e):e=b[17],a=e,n="button",m=t,h=t?a.removeTitle:a.addTitle,b[18]!==j||b[19]!==w||b[20]!==y||b[21]!==S||b[22]!==v?(u=()=>S({url:v,title:y,icon:w,group:j}),b[18]=j,b[19]=w,b[20]=y,b[21]=S,b[22]=v,b[23]=u):u=b[23];let i=t?"border-primary/35 bg-primary/15 text-foreground shadow-sm":"border-border bg-background/75 text-muted-foreground hover:border-primary/30 hover:bg-primary/8 hover:text-foreground";b[24]!==_||b[25]!==i?(p=(0,o.cn)("inline-flex h-8 shrink-0 items-center gap-1.5 rounded-md border px-2.5 text-xs font-semibold transition-colors",i,_),b[24]=_,b[25]=i,b[26]=p):p=b[26],r=l.Star,s=(0,o.cn)("h-3.5 w-3.5",t&&"fill-primary text-primary"),b[0]=_,b[1]=j,b[2]=w,b[3]=k,b[4]=N,b[5]=y,b[6]=S,b[7]=v,b[8]=r,b[9]=a,b[10]=s,b[11]=n,b[12]=m,b[13]=h,b[14]=u,b[15]=p}else r=b[8],a=b[9],s=b[10],n=b[11],m=b[12],h=b[13],u=b[14],p=b[15];return b[27]!==r||b[28]!==s?(x=(0,t.jsx)(r,{className:s}),b[27]=r,b[28]=s,b[29]=x):x=b[29],b[30]!==a.label?(g=(0,t.jsx)("span",{children:a.label}),b[30]=a.label,b[31]=g):g=b[31],b[32]!==n||b[33]!==m||b[34]!==h||b[35]!==u||b[36]!==p||b[37]!==x||b[38]!==g?(f=(0,t.jsxs)("button",{type:n,"aria-pressed":m,title:h,onClick:u,className:p,children:[x,g]}),b[32]=n,b[33]=m,b[34]=h,b[35]=u,b[36]=p,b[37]=x,b[38]=g,b[39]=f):f=b[39],f}e.s(["FavouriteToolButton",()=>m],656188)},494764,e=>{"use strict";var t=e.i(521322),i=e.i(374995);let r="pac:favourite-tools:v1",a="pac:favourite-tools-changed",s=()=>{try{let e=window.localStorage.getItem(r);if(!e)return[];let t=JSON.parse(e);if(!Array.isArray(t))return[];return t.filter(e=>e&&"object"==typeof e&&"string"==typeof e.url&&e.url.trim().length>0&&"string"==typeof e.title&&e.title.trim().length>0).map(e=>({url:e.url,title:e.title,icon:"string"==typeof e.icon?e.icon:void 0,group:"string"==typeof e.group?e.group:void 0,savedAt:"number"==typeof e.savedAt?e.savedAt:0})).sort((e,t)=>
1t.savedAt-e.savedAt)}catch{return[]}};function n(){let e,n,l,o,c,d,m,h=(0,t.c)(10);h[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],h[0]=e):e=h[0];let[u,p]=(0,i.useState)(e);h[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{p(s())},h[1]=n):n=h[1];let x=n;h[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{x();let e=e=>{e.key===r&&x()},t=()=>x();return window.addEventListener("storage",e),window.addEventListener(a,t),()=>{window.removeEventListener("storage",e),window.removeEventListener(a,t)}},o=[x],h[2]=l,h[3]=o):(l=h[2],o=h[3]),(0,i.useEffect)(l,o),h[4]!==u?(c=e=>!!e&&u.some(t=>t.url===e),h[4]=u,h[5]=c):c=h[5];let g=c;h[6]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{let t=e.url.trim(),i=e.title.trim();if(!t||!i)return;let n=s(),l=n.some(e=>e.url===t)?n.filter(e=>e.url!==t):[{...e,url:t,title:i,savedAt:Date.now()},...n.filter(e=>e.url!==t)];window.localStorage.setItem(r,JSON.stringify(l)),window.dispatchEvent(new CustomEvent(a)),p(l)},h[6]=d):d=h[6];let f=d;return h[7]!==g||h[8]!==u?(m={items:u,isFavourite:g,toggleFavourite:f},h[7]=g,h[8]=u,h[9]=m):m=h[9],m}e.s(["useFavouriteTools",()=>n])},463209,e=>{"use strict";let t=(0,e.i(889522).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",()=>t],463209)},209428,e=>{"use strict";e.s(["PROVIDER_ABBREVIATIONS",0,{openrouter:"OR",replicate:"RP",fal:"FA",gemini:"GM",kie:"KIE"},"buildModelKey",0,(e,t)=>t?e?`${e}::${t}`:t:""])},994772,e=>{"use strict";let t=(0,e.i(889522).default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",()=>t],994772)},506039,e=>{"use strict";let t=(0,e.i(889522).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",()=>t],506039)},862015,e=>{"use strict";var t=e.i(99674);e.s(["WandSparkles",()=>t.default])},918720,e=>{"use strict";let t=(0,e.i(889522).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",()=>t],918720)},520960,e=>{"use strict";let t="https://upload.howtopose.ai\n".trim()||"",i=async e=>{try{let t=await e.json();return t?.message||`Upload failed with status ${e.status}`}catch{return`Upload failed with status ${e.status}`}},r=async e=>{let t=new FormData;t.append("files",e);let r=await fetch("/api/storage/upload-image",{method:"POST",body:t});if(!r.ok)throw Error(await i(r));let a=await r.json();if(0!==a.code||!a.data?.urls?.length)throw Error(a.message||"Upload failed");return a.data.urls[0]},a=async e=>{if(!t)throw Error("Upload gateway URL is not configured");let r=new FormData;r.append("files",e);let a=await fetch(`${t.replace(/\/+$/,"")}/upload-image`,{method:"POST",body:r});if(!a.ok)throw Error(await i(a));let s=await a.json();if(0!==s.code||!s.data?.urls?.length)throw Error(s.message||"Upload failed");return s.data.urls[0]},s=async e=>{let t=await fetch("/api/storage/upload-image-multipart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"init",filename:e.name,contentType:e.type,size:e.size})});if(!t.ok)throw Error(await i(t));let r=await t.json(),a=r?.data;if(r?.code!==0||!a?.uploadId||!a?.key||!a?.url)throw Error(r?.message||"Failed to prepare multipart upload");let s=[];try{let t=1;for(let r=0;r<e.size;r+=5242880){let n=e.slice(r,r+5242880),l=await fetch(`/api/storage/upload-image-multipart?uploadId=${encodeURIComponent(a.uploadId)}&key=${encodeURIComponent(a.key)}&partNumber=${t}`,{method:"PUT",headers:{"Content-Type":"application/octet-stream"},body:n});if(!l.ok)throw Error(await i(l));let o=await l.json(),c=o?.data?.etag;if(o?.code!==0||!c)throw Error(o?.message||"Multipart part upload failed");s.push({partNumber:t,etag:c}),t+=1}let r=await fetch("/api/storage/upload-image-multipart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"complete",uploadId:a.uploadId,key:a.key,parts:s})});if(!r.ok)throw Error(await i(r));let n=await r.json(),l=n?.data?.url;if(n?.code!==0||!l)throw Error(n?.message||"Multipart upload completion failed");return l}catch(e){throw await fetch("/api/storage/upload-image-multipart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"abort",uploadId:a.uploadId,key:a.key})}).catch(()=>void 0),e}};async function n(e){return t?a(e):e.size<=4194304?r(e):s(e)}async function l(e){let t=await fetch("/api/storage/sign-upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filename:e.name,contentType:e.type,size:e.size})});if(!t.ok)throw Error(await i(t));let r=await t.json(),a=r?.data;if(r?.code!==0||!a?.url)throw Error(r?.message||"Failed to prepare upload");let s=async()=>{let t=a.browserForm;if(!t||"undefined"==typeof document)throw Error("Browser upload fallback is not available");return await new Promise((i,r)=>{let s=`upload-target-${Math.random().toString(36).slice(2)}`,n=document.createElement("iframe");n.name=s,n.style.display="none";let l=document.createElement("form");for(let[e,i]of(l.method="POST",l.action=t.actionUrl,l.enctype="multipart/form-data",l.target=s,l.style.display="none",Object.entries(t.fields))){let t=document.createElement("input");t.type="hidden",t.name=e,t.value=i,l.appendChild(t)}let o=document.createElement("input");o.type="file",o.name="file";let c=new DataTransfer;c.items.add(e),o.files=c.files,l.appendChild(o);let d=()=>{n.remove(),l.remove()},m=window.setTimeout(()=>{d(),r(Error("Upload timed out"))},6e4);n.addEventListener("load",()=>{try{let e=n.contentWindow?.location.href;if(!e||"about:blank"===e)return;let r=new URL(e),s=new URL(t.callbackUrl);if(r.origin!==s.origin||r.pathname!==s.pathname||r.searchParams.get("uploadToken")!==s.searchParams.get("uploadToken"))return;window.clearTimeout(m),d(),i(t.publicUrl||a.url)}catch{}}),document.body.appendChild(n),document.body.appendChild(l),l.submit()})};if(a.uploadUrl&&(!a.method||"PUT"===a.method))try{let t=await fetch(a.uploadUrl,{method:a.method||"PUT",headers:a.headers||{},body:e});if(!t.ok)throw Error(`Upload failed with status ${t.status}`);return a.url}catch(e){if(!a.browserForm)throw e}return s()}e.s(["uploadImageDirect",()=>n,"uploadImageDirectViaR2",()=>l])},669764,e=>{"use strict";var t=e.i(264822);e.s([],796409),e.i(796409),e.s(["Pricing",()=>t.PricingSection],669764)},389366,e=>{"use strict";var t=e.i(883580),i=e.i(521322);e.i(741820);var r=e.i(24963),a=e.i(819023),s=e.i(526683);
1function n(e){let r,n,o,c,d,m,h=(0,i.c)(16),{section:u,className:p}=e,x=u.id;return h[0]!==p||h[1]!==u.className?(r=(0,s.cn)("py-16 md:py-24",u.className,p),h[0]=p,h[1]=u.className,h[2]=r):r=h[2],h[3]!==u.title?(n=(0,t.jsx)(a.ScrollAnimation,{children:(0,t.jsx)("p",{className:"text-md text-center font-medium",children:u.title})}),h[3]=u.title,h[4]=n):n=h[4],h[5]!==u.items?(o=u.items?.map(l),h[5]=u.items,h[6]=o):o=h[6],h[7]!==o?(c=(0,t.jsx)(a.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"mx-auto mt-12 flex max-w-4xl flex-wrap items-center justify-center gap-x-12 gap-y-8 sm:gap-x-16 sm:gap-y-12",children:o})}),h[7]=o,h[8]=c):c=h[8],h[9]!==n||h[10]!==c?(d=(0,t.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[n,c]}),h[9]=n,h[10]=c,h[11]=d):d=h[11],h[12]!==u.id||h[13]!==r||h[14]!==d?(m=(0,t.jsx)("section",{id:x,className:r,children:d}),h[12]=u.id,h[13]=r,h[14]=d,h[15]=m):m=h[15],m}function l(e,i){return(0,t.jsx)(r.LazyImage,{className:"h-8 w-fit dark:invert",src:e.image?.src??"",alt:e.image?.alt??""},i)}e.s(["Logos",()=>n])},421616,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(374995),a=e.i(339191),s=e.i(98160),n=e.i(570172),l=e.i(866273),o=e.i(653668),c=e.i(199978);e.i(741820);var d=e.i(24963),m=e.i(331597),h=e.i(511398),u=e.i(526683);function p(e){let p,b,v,y,w,j,N,_,k,S,T,C,z,M,I,E,L,A,P,R,$,O=(0,i.c)(61),{section:F,className:H}=e;O[0]!==F?(p=F.groups||[],O[0]=F,O[1]=p):p=O[1];let W=p,[D,B]=(0,r.useState)(W.length>0?W[0].name:""),[U,q]=(0,r.useState)(null),V=!0===F.disable_scroll_animation||!0===F.disable_section_reveal;e:{let e;if(!F.items){let e;O[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],O[2]=e):e=O[2],b=e;break e}if(!D||!W.length||"all"===D){b=F.items;break e}if(O[3]!==F.items||O[4]!==D){let t;O[6]!==D?(t=e=>e.group===D,O[6]=D,O[7]=t):t=O[7],e=F.items.filter(t),O[3]=F.items,O[4]=D,O[5]=e}else e=O[5];b=e}let J=b;O[8]!==V?(v=(e,t,i)=>V?{initial:!1,animate:t}:{initial:e,whileInView:t,viewport:void 0===i?{once:!0}:i},O[8]=V,O[9]=v):v=O[9];let G=v;O[10]!==J.length?(y=()=>{q(e=>null!==e?0===e?(J.length??1)-1:e-1:null)},O[10]=J.length,O[11]=y):y=O[11];let X=y;O[12]!==J.length?(w=()=>{q(e=>null!==e?e===(J.length??1)-1?0:e+1:null)},O[12]=J.length,O[13]=w):w=O[13];let K=w;O[14]!==K||O[15]!==X||O[16]!==U?(j=()=>{let e=e=>{null!==U&&("Escape"===e.key&&q(null),"ArrowLeft"===e.key&&X(),"ArrowRight"===e.key&&K())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},N=[U,X,K],O[14]=K,O[15]=X,O[16]=U,O[17]=j,O[18]=N):(j=O[17],N=O[18]),(0,r.useEffect)(j,N);let Q=F.id||F.name;return O[19]!==H||O[20]!==F.className?(_=(0,u.cn)("py-24 md:py-36",F.className,H),O[19]=H,O[20]=F.className,O[21]=_):_=O[21],O[22]!==G?(k=G({opacity:0,y:20},{opacity:1,y:0}),O[22]=G,O[23]=k):k=O[23],O[24]===Symbol.for("react.memo_cache_sentinel")?(S=[.22,1,.36,1],O[24]=S):S=O[24],O[25]===Symbol.for("react.memo_cache_sentinel")?(T={duration:.6,ease:S},O[25]=T):T=O[25],O[26]!==F.sr_only_title?(C=F.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:F.sr_only_title}),O[26]=F.sr_only_title,O[27]=C):C=O[27],O[28]!==F.title?(z=(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:F.title}),O[28]=F.title,O[29]=z):z=O[29],O[30]!==F.description?(M=(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 line-clamp-3 max-w-full md:max-w-5xl",children:F.description}),O[30]=F.description,O[31]=M):M=O[31],O[32]!==F.buttons?(I=F.buttons&&F.buttons.length>0&&(0,t.jsx)("div",{className:"container mx-auto mt-8 mb-12 flex flex-wrap justify-center gap-4",children:F.buttons.map(f)}),O[32]=F.buttons,O[33]=I):I=O[33],O[34]!==k||O[35]!==C||O[36]!==z||O[37]!==M||O[38]!==I?(E=(0,t.jsxs)(s.motion.div,{className:"container mb-12 text-center",...k,transition:T,children:[C,z,M,I]}),O[34]=k,O[35]=C,O[36]=z,O[37]=M,O[38]=I,O[39]=E):E=O[39],O[40]!==G||O[41]!==W||O[42]!==D?(L=W.length>0&&(0,t.jsx)(s.motion.div,{className:"container mb-12 flex flex-wrap justify-center gap-4",...G({opacity:0,y:20},{opacity:1,y:0}),transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},children:W.map((e,i)=>{let r=D===e.name;return(0,t.jsx)(s.motion.button,{onClick:()=>B(e.name),className:(0,u.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",r?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),...G({opacity:0,scale:.9},{opacity:1,scale:1}),transition:{duration:.4,delay:.2+.1*i,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,t.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,t.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,t.jsx)("span",{children:e.title})},e.name)})}),O[40]=G,O[41]=W,O[42]=D,O[43]=L):L=O[43],O[44]!==J||O[45]!==G?(A=J.length>0?(0,t.jsx)("div",{className:"container mx-auto columns-1 gap-4 space-y-4 sm:columns-2 lg:columns-3 xl:columns-4",children:J.map((e,i)=>(0,t.jsxs)(s.motion.div,{className:"group relative cursor-zoom-in break-inside-avoid overflow-hidden rounded-xl",onClick:()=>q(i),...G({opacity:0,y:30,scale:.95},{opacity:1,y:0,scale:1},{once:!0,margin:"-50px"}),transition:{duration:.6,delay:.1*i,ease:[.22,1,.36,1]},whileHover:{scale:1.02},children:[(0,t.jsx)(d.LazyImage,{src:e.image?.src??"",alt:e.image?.alt??"",className:"h-auto w-full transition-transform duration-300 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end bg-black/60 p-6 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:[(0,t.jsx)("h3",{className:"mb-2 translate-y-4 text-sm font-medium text-white transition-transform duration-300 group-hover:translate-y-0",children:e.title}),e.button&&(0,t.jsx)("div",{className:"mt-3 translate-y-4 transition-transform delay-100 duration-300 group-hover:translate-y-0",onClick:g,children:(0,t.jsx)(h.Button,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground h-8 w-full border-0 px-1 py-1.5 text-sm font-medium",children:(0,t.jsxs)(c.Link,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,t.jsx)(m.SmartIcon,{name:e.button.icon}),e.button.title]})})})]})]},i))}):(0,t.jsx)(s.motion.div,{className:"text-muted-foreground container text-center",...G({o
1pacity:0},{opacity:1}),transition:{duration:.4},children:"No items found in this category."}),O[44]=J,O[45]=G,O[46]=A):A=O[46],O[47]!==J||O[48]!==K||O[49]!==X||O[50]!==U?(P=null!==U&&J&&J.length>0&&(0,t.jsxs)(s.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/90 p-4 backdrop-blur-sm md:p-8",onClick:()=>q(null),children:[(0,t.jsx)("button",{className:"absolute top-4 right-4 z-50 text-white/70 transition-colors hover:text-white",onClick:()=>q(null),children:(0,t.jsx)(o.X,{className:"size-8"})}),(0,t.jsx)("button",{className:"absolute top-1/2 left-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),X()},children:(0,t.jsx)(n.ChevronLeft,{className:"size-8 md:size-12"})}),(0,t.jsx)("button",{className:"absolute top-1/2 right-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),K()},children:(0,t.jsx)(l.ChevronRight,{className:"size-8 md:size-12"})}),(0,t.jsx)(s.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"relative flex h-full w-full items-center justify-center",onClick:x,children:(0,t.jsxs)("div",{className:"relative max-h-full max-w-full overflow-hidden rounded-lg",children:[(0,t.jsx)(d.LazyImage,{src:J[U].image?.src??"",alt:J[U].image?.alt??"",className:"h-auto max-h-[90vh] w-auto max-w-full object-contain"}),(0,t.jsxs)("div",{className:"absolute right-0 bottom-0 left-0 bg-gradient-to-t from-black/80 via-black/50 to-transparent p-6 text-white",children:[(0,t.jsx)("h3",{className:"mb-2 text-2xl font-bold",children:J[U].title}),J[U].description&&(0,t.jsx)("p",{className:"line-clamp-3 text-base text-white/90",children:J[U].description}),J[U].button&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(h.Button,{asChild:!0,variant:J[U].button.variant||"default",size:J[U].button.size||"default",className:"bg-primary hover:bg-primary/90 h-8 border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,t.jsxs)(c.Link,{href:J[U].button.url||"",target:J[U].button.target||"_self",children:[J[U].button.icon&&(0,t.jsx)(m.SmartIcon,{name:J[U].button.icon,className:"text-white"}),J[U].button.title]})})})]})]})},U)]}),O[47]=J,O[48]=K,O[49]=X,O[50]=U,O[51]=P):P=O[51],O[52]!==P?(R=(0,t.jsx)(a.AnimatePresence,{children:P}),O[52]=P,O[53]=R):R=O[53],O[54]!==E||O[55]!==L||O[56]!==A||O[57]!==R||O[58]!==Q||O[59]!==_?($=(0,t.jsxs)("section",{id:Q,className:_,children:[E,L,A,R]}),O[54]=E,O[55]=L,O[56]=A,O[57]=R,O[58]=Q,O[59]=_,O[60]=$):$=O[60],$}function x(e){return e.stopPropagation()}function g(e){return e.stopPropagation()}function f(e){return(0,t.jsx)(h.Button,{variant:e.variant||"default",size:e.size||"sm",asChild:!0,children:(0,t.jsxs)(c.Link,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(m.SmartIcon,{name:e.icon}),e.title]})},e.title)}e.s(["ShowcasesFlow",()=>p])},856049,e=>{"use strict";let t=(0,e.i(889522).default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["SendHorizonal",()=>t],856049)},943592,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(374995),a=e.i(176342);let s="http://www.w3.org/2000/svg";class n{constructor(e){this.seed=e}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}function l(e,t,i,r,a){return{type:"path",ops:u(e,t,i,r,a)}}function o(e,t,i){let r=(e||[]).length;if(r>2){let a=[];for(let t=0;t<r-1;t++)a.push(...u(e[t][0],e[t][1],e[t+1][0],e[t+1][1],i));return t&&a.push(...u(e[r-1][0],e[r-1][1],e[0][0],e[0][1],i)),{type:"path",ops:a}}return 2===r?l(e[0][0],e[0][1],e[1][0],e[1][1],i):{type:"path",ops:[]}}function c(e,t,i,r,a){let s,n,l,o,c;return function(e,t,i,r){let[a,s]=g(r.increment,e,t,r.rx,r.ry,1,r.increment*m(.1,m(.4,1,i),i),i),n=x(a,null,i);if(!i.disableMultiStroke){let[a]=g(r.increment,e,t,r.rx,r.ry,1.5,0,i),s=x(a,null,i);n=n.concat(s)}return{estimatedPoints:s,opset:{type:"path",ops:n}}}(e,t,a,(s=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(i/2,2)+Math.pow(r/2,2))/2)),n=2*Math.PI/Math.max(a.curveStepCount,a.curveStepCount/Math.sqrt(200)*s),l=Math.abs(i/2),o=Math.abs(r/2),c=1-a.curveFitting,l+=h(l*c,a),o+=h(o*c,a),{increment:n,rx:l,ry:o})).opset}function d(e){return e.randomizer||(e.randomizer=new n(e.seed||0)),e.randomizer.next()}function m(e,t,i,r=1){return i.roughness*r*(d(i)*(t-e)+e)}function h(e,t,i=1){return m(-e,e,t,i)}function u(e,t,i,r,a,s=!1){let n=s?a.disableMultiStrokeFill:a.disableMultiStroke,l=p(e,t,i,r,a,!0,!1);if(n)return l;let o=p(e,t,i,r,a,!0,!0);return l.concat(o)}function p(e,t,i,r,a,s,n){let l=Math.pow(e-i,2)+Math.pow(t-r,2),o=Math.sqrt(l),c=1;c=o<200?1:o>500?.4:-.0016668*o+1.233334;let m=a.maxRandomnessOffset||0;m*m*100>
1l&&(m=o/10);let u=m/2,p=.2+.2*d(a),x=a.bowing*a.maxRandomnessOffset*(r-t)/200,g=a.bowing*a.maxRandomnessOffset*(e-i)/200;x=h(x,a,c),g=h(g,a,c);let f=[];return s&&(n?f.push({op:"move",data:[e+h(u,a,c),t+h(u,a,c)]}):f.push({op:"move",data:[e+h(m,a,c),t+h(m,a,c)]})),n?f.push({op:"bcurveTo",data:[x+e+(i-e)*p+h(u,a,c),g+t+(r-t)*p+h(u,a,c),x+e+2*(i-e)*p+h(u,a,c),g+t+2*(r-t)*p+h(u,a,c),i+h(u,a,c),r+h(u,a,c)]}):f.push({op:"bcurveTo",data:[x+e+(i-e)*p+h(m,a,c),g+t+(r-t)*p+h(m,a,c),x+e+2*(i-e)*p+h(m,a,c),g+t+2*(r-t)*p+h(m,a,c),i+h(m,a,c),r+h(m,a,c)]}),f}function x(e,t,i){let r=e.length,a=[];if(r>3){let s=[],n=1-i.curveTightness;a.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let i=e[t];s[0]=[i[0],i[1]],s[1]=[i[0]+(n*e[t+1][0]-n*e[t-1][0])/6,i[1]+(n*e[t+1][1]-n*e[t-1][1])/6],s[2]=[e[t+1][0]+(n*e[t][0]-n*e[t+2][0])/6,e[t+1][1]+(n*e[t][1]-n*e[t+2][1])/6],s[3]=[e[t+1][0],e[t+1][1]],a.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}if(t&&2===t.length){let e=i.maxRandomnessOffset;a.push({op:"lineTo",data:[t[0]+h(e,i),t[1]+h(e,i)]})}}else 3===r?(a.push({op:"move",data:[e[1][0],e[1][1]]}),a.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&a.push(...u(e[0][0],e[0][1],e[1][0],e[1][1],i));return a}function g(e,t,i,r,a,s,n,l){let o=[],c=[],d=h(.5,l)-Math.PI/2;c.push([h(s,l)+t+.9*r*Math.cos(d-e),h(s,l)+i+.9*a*Math.sin(d-e)]);for(let n=d;n<2*Math.PI+d-.01;n+=e){let e=[h(s,l)+t+r*Math.cos(n),h(s,l)+i+a*Math.sin(n)];o.push(e),c.push(e)}return c.push([h(s,l)+t+r*Math.cos(d+2*Math.PI+.5*n),h(s,l)+i+a*Math.sin(d+2*Math.PI+.5*n)]),c.push([h(s,l)+t+.98*r*Math.cos(d+n),h(s,l)+i+.98*a*Math.sin(d+n)]),c.push([h(s,l)+t+.9*r*Math.cos(d+.5*n),h(s,l)+i+.9*a*Math.sin(d+.5*n)]),[c,o]}function f(e,t){return{maxRandomnessOffset:2,roughness:"highlight"===e?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,combineNestedSvgPaths:!1,disableMultiStroke:"double"!==e,disableMultiStrokeFill:!1,seed:t}}class b{constructor(e,t){this._state="unattached",this._resizing=!1,this._seed=Math.floor(0x80000000*Math.random()),this._lastSizes=[],this._animationDelay=0,this._resizeListener=()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,"showing"===this._state&&this.haveRectsChanged()&&this.show()},400))},this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if("unattached"===this._state&&this._e.parentElement){if(!window.__rno_kf_s){let e=window.__rno_kf_s=document.createElement("style");e.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(e)}let e=this._svg=document.createElementNS(s,"svg");e.setAttribute("class","rough-annotation");let t=e.style;t.position="absolute",t.top="0",t.left="0",t.overflow="visible",t.pointerEvents="none",t.width="100px",t.height="100px";let i="highlight"===this._config.type;if(this._e.insertAdjacentElement(i?"beforebegin":"afterend",e),this._state="not-showing",i){let e=window.getComputedStyle(this._e).position;e&&"static"!==e||(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(let t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let e=this.rects();if(e.length!==this._lastSizes.length)return!0;for(let t=0;t<e.length;t++)if(!this.isSameRect(e[t],this._lastSizes[t]))return!0}return!1}isSameRect(e,t){let i=(e,t)=>Math.round(e)===Math.round(t);return i(e.x,t.x)&&i(e.y,t.y)&&i(e.w,t.w)&&i(e.h,t.h)}isShowing(){return"not-showing"!==this._state}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&this.render(this._svg,!1)}}
1hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}render(e,t){let i=this._config;t&&((i=JSON.parse(JSON.stringify(this._config))).animate=!1);let r=this.rects(),a=0;r.forEach(e=>a+=e.w);let n=i.animationDuration||800,d=0;for(let t=0;t<r.length;t++){let m=n*(r[t].w/a);(function(e,t,i,r,a,n){let d=[],m=i.strokeWidth||2,h=function(e){let t=e.padding;if(t||0===t){if("number"==typeof t)return[t,t,t,t];if(Array.isArray(t)&&t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}return[5,5,5,5]}(i),u=void 0===i.animate||!!i.animate,p=i.iterations||2,x=+!!i.rtl,g=f("single",n);switch(i.type){case"underline":{let e=t.y+t.h+h[2];for(let i=x;i<p+x;i++)i%2?d.push(l(t.x+t.w,e,t.x,e,g)):d.push(l(t.x,e,t.x+t.w,e,g));break}case"strike-through":{let e=t.y+t.h/2;for(let i=x;i<p+x;i++)i%2?d.push(l(t.x+t.w,e,t.x,e,g)):d.push(l(t.x,e,t.x+t.w,e,g));break}case"box":{let e=t.x-h[3],i=t.y-h[0],r=t.w+(h[1]+h[3]),a=t.h+(h[0]+h[2]);for(let t=0;t<p;t++){var b,v,y,w;d.push(o([[b=e,v=i],[b+(y=r),v],[b+y,v+(w=a)],[b,v+w]],!0,g))}break}case"bracket":{let e=Array.isArray(i.brackets)?i.brackets:i.brackets?[i.brackets]:["right"],r=t.x-2*h[3],a=t.x+t.w+2*h[1],s=t.y-2*h[0],n=t.y+t.h+2*h[2];for(let i of e){let e;switch(i){case"bottom":e=[[r,t.y+t.h],[r,n],[a,n],[a,t.y+t.h]];break;case"top":e=[[r,t.y],[r,s],[a,s],[a,t.y]];break;case"left":e=[[t.x,s],[r,s],[r,n],[t.x,n]];break;case"right":e=[[t.x+t.w,s],[a,s],[a,n],[t.x+t.w,n]]}e&&d.push(o(e,!1,g))}break}case"crossed-off":{let e=t.x,i=t.y,r=e+t.w,a=i+t.h;for(let t=x;t<p+x;t++)t%2?d.push(l(r,a,e,i,g)):d.push(l(e,i,r,a,g));for(let t=x;t<p+x;t++)t%2?d.push(l(e,a,r,i,g)):d.push(l(r,i,e,a,g));break}case"circle":{let e=f("double",n),i=t.w+(h[1]+h[3]),r=t.h+(h[0]+h[2]),a=t.x-h[3]+i/2,s=t.y-h[0]+r/2,l=Math.floor(p/2),o=p-2*l;for(let t=0;t<l;t++)d.push(c(a,s,i,r,e));for(let e=0;e<o;e++)d.push(c(a,s,i,r,g));break}case"highlight":{let e=f("highlight",n);m=.95*t.h;let i=t.y+t.h/2;for(let r=x;r<p+x;r++)r%2?d.push(l(t.x+t.w,i,t.x,i,e)):d.push(l(t.x,i,t.x+t.w,i,e))}}if(d.length){let t=function(e){let t=[];for(let i of e){let e="";for(let r of i.ops){let i=r.data;switch(r.op){case"move":e.trim()&&t.push(e.trim()),e=`M${i[0]} ${i[1]} `;break;case"bcurveTo":e+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":e+=`L${i[0]} ${i[1]} `}}e.trim()&&t.push(e.trim())}return t}(d),n=[],l=[],o=0,c=(e,t,i)=>e.setAttribute(t,i);for(let r of t){let t=document.createElementNS(s,"path");if(c(t,"d",r),c(t,"fill","none"),c(t,"stroke",i.color||"currentColor"),c(t,"stroke-width",""+m),u){let e=t.getTotalLength();n.push(e),o+=e}e.appendChild(t),l.push(t)}if(u){let e=0;for(let t=0;t<l.length;t++){let i=l[t],s=n[t],c=o?s/o*a:0,d=r+e,m=i.style;m.strokeDashoffset=""+s,m.strokeDasharray=""+s,m.animation=`rough-notation-dash ${c}ms ease-out ${d}ms forwards`,e+=c}}}})(e,r[t],i,d+this._animationDelay,m,this._seed),d+=m}this._lastSizes=r,this._state="showing"}rects(){let e=[];
1if(this._svg)if(this._config.multiline){let t=this._e.getClientRects();for(let i=0;i<t.length;i++)e.push(this.svgRect(this._svg,t[i]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,t){let i=e.getBoundingClientRect();return{x:(t.x||t.left)-(i.x||i.left),y:(t.y||t.top)-(i.y||i.top),w:t.width,h:t.height}}}function v(e){let s,n,l,o,c=(0,i.c)(13),{children:d,action:m,color:h,strokeWidth:u,animationDuration:p,iterations:x,padding:g,multiline:f,isView:v}=e,y=void 0===m?"highlight":m,w=void 0===h?"#ffd1dc":h,j=void 0===u?1.5:u,N=void 0===p?600:p,_=void 0===x?2:x,k=void 0===g?2:g,S=void 0===f||f,T=(0,r.useRef)(null),C=(0,r.useRef)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(s={once:!0,margin:"-10%"},c[0]=s):s=c[0];let z=(0,a.useInView)(T,s),M=!(void 0!==v&&v)||z;return c[1]!==y||c[2]!==N||c[3]!==w||c[4]!==_||c[5]!==S||c[6]!==k||c[7]!==M||c[8]!==j?(n=()=>{if(!M)return;let e=T.current;if(!e)return;let t=new b(e,{type:y,color:w,strokeWidth:j,animationDuration:N,iterations:_,padding:k,multiline:S});C.current=t,C.current.show();let i=new ResizeObserver(()=>{t.hide(),t.show()});return i.observe(e),i.observe(document.body),()=>{e&&(new b(e,{type:y}).remove(),i.disconnect())}},l=[M,y,w,j,N,_,k,S],c[1]=y,c[2]=N,c[3]=w,c[4]=_,c[5]=S,c[6]=k,c[7]=M,c[8]=j,c[9]=n,c[10]=l):(n=c[9],l=c[10]),(0,r.useEffect)(n,l),c[11]!==d?(o=(0,t.jsx)("span",{ref:T,className:"relative inline-block bg-transparent",children:d}),c[11]=d,c[12]=o):o=c[12],o}e.s(["Highlighter",()=>v],943592)},339191,e=>{"use strict";e.i(623260);var t=e.i(883580),i=e.i(374995),r=e.i(991531),a=e.i(94158),s=e.i(649163),n=e.i(194932),l=e.i(443390),o=i,c=e.i(263137);class d extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,i=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:i,anchorX:r,root:a}){let s=(0,o.useId)(),n=(0,o.useRef)(null),l=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=(0,o.useContext)(c.MotionConfigContext);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:o,left:c,right:d}=l.current;if(i||!n.current||!e||!t)return;let h="left"===r?`left: ${c}`:`right: ${d}`;n.current.dataset.motionPopId=s;let u=document.createElement("style");m&&(u.nonce=m);let p=a??document.head;return p.appendChild(u),u.sheet&&u.sheet.insertRule(` 2 [data-motion-pop-id="${s}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${h}px !important; 7 top: ${o}px !important; 8 } 9 `),()=>{p.contains(u)&&p.removeChild(u)}},[i]),(0,t.jsx)(d,{isPresent:i,childRef:n,sizeRef:l,children:o.cloneElement(e,{ref:n})})}let h=({children:e,initial:r,isPresent:s,onExitComplete:l,custom:o,presenceAffectsLayout:c,mode:d,anchorX:h,root:p})=>{let x=(0,a.useConstant)(u),g=(0,i.useId)(),f=!0,b=(0,i.useMemo)(()=>(f=!1,{id:g,initial:r,isPresent:s,custom:o,onExitComplete:e=>{for(let t of(x.set(e,!0),x.values()))if(!t)return;l&&l()},register:e=>(x.set(e,!1),()=>x.delete(e))}),[s,x,l]);return c&&f&&(b={...b}),(0,i.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[s]),i.useEffect(()=>{s||x.size||!l||l()},[s]),"popLayout"===d&&(e=(0,t.jsx)(m,{isPresent:s,anchorX:h,root:p,children:e})),(0,t.jsx)(n.PresenceContext.Provider,{value:b,children:e})};function u(){return new Map}var p=e.i(635149);let x=e=>e.key||"";function g(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let f=({children:e,custom:n,initial:l=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:m=!1,anchorX:u="left",root:f})=>{let[b,v]=(0,p.usePresence)(m),y=(0,i.useMemo)(()=>g(e),[e]),w=m&&!b?[]:y.map(x),j=(0,i.useRef)(!0),N=(0,i.useRef)(y),_=(0,a.useConstant)(()=>new Map),[k,S]=(0,i.useState)(y),[T,C]=(0,i.useState)(y);(0,s.useIsomorphicLayoutEffect)(()=>{j.current=!1,N.current=y;for(let e=0;e<T.length;e++){let t=x(T[e]);w.includes(t)?_.delete(t):!0!==_.get(t)&&_.set(t,!1)}},[T,w.length,w.join("-")]);let z=[];if(y!==k){let e=[...y];for(let t=0;t<T.length;t++){let i=T[t],r=x(i);w.includes(r)||(e.splice(t,0,i),z.push(i))}return"wait"===d&&z.length&&(e=z),C(g(e)),S(y),null}let{forceRender:M}=(0,i.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:T.map(e=>{let i=x(e),r=(!m||!!b)&&(y===T||w.includes(i));return(0,t.jsx)(h,{isPresent:r,initial:(!j.current||!!l)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,root:f,onExitComplete:r?void 0:()=>
9{if(!_.has(i))return;_.set(i,!0);let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(M?.(),C(N.current),m&&v?.(),o&&o())},anchorX:u,children:e},i)})})};e.s(["AnimatePresence",()=>f],339191)},533480,e=>{"use strict";var t=e.i(883580),i=e.i(521322),r=e.i(526683),a=e.i(98160);e.s(["BorderBeam",0,e=>{let s,n,l,o,c,d,m,h,u=(0,i.c)(28),{className:p,size:x,delay:g,duration:f,colorFrom:b,colorTo:v,transition:y,style:w,reverse:j,initialOffset:N,borderWidth:_}=e,k=void 0===x?50:x,S=void 0===f?6:f,T=void 0===b?"#ffaa40":b,C=void 0===v?"#9c40ff":v,z=void 0!==j&&j,M=void 0===N?0:N,I=`${void 0===_?1:_}px`;u[0]!==I?(s={"--border-beam-width":I},u[0]=I,u[1]=s):s=u[1];let E=s;u[2]!==p?(n=(0,r.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",p),u[2]=p,u[3]=n):n=u[3];let L=`rect(0 auto auto 0 round ${k}px)`;u[4]!==T||u[5]!==C||u[6]!==k||u[7]!==w||u[8]!==L?(l={width:k,offsetPath:L,"--color-from":T,"--color-to":C,...w},u[4]=T,u[5]=C,u[6]=k,u[7]=w,u[8]=L,u[9]=l):l=u[9];let A=l,P=`${M}%`;u[10]!==P?(o={offsetDistance:P},u[10]=P,u[11]=o):o=u[11],u[12]!==M||u[13]!==z?(c={offsetDistance:z?[`${100-M}%`,`${-M}%`]:[`${M}%`,`${100+M}%`]},u[12]=M,u[13]=z,u[14]=c):c=u[14];let R=-(void 0===g?0:g);return u[15]!==S||u[16]!==R||u[17]!==y?(d={repeat:1/0,ease:"linear",duration:S,delay:R,...y},u[15]=S,u[16]=R,u[17]=y,u[18]=d):d=u[18],u[19]!==n||u[20]!==A||u[21]!==o||u[22]!==c||u[23]!==d?(m=(0,t.jsx)(a.motion.div,{className:n,style:A,initial:o,animate:c,transition:d}),u[19]=n,u[20]=A,u[21]=o,u[22]=c,u[23]=d,u[24]=m):m=u[24],u[25]!==E||u[26]!==m?(h=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[inherit] border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] border-(length:--border-beam-width)",style:E,children:m}),u[25]=E,u[26]=m,u[27]=h):h=u[27],h}])},83313,e=>{"use strict";var t=e.i(374995);function i(e,r,a=function e(t,i){return Array.isArray(t)&&Array.isArray(i)?i.length!==t.length||t.some((t,r)=>e(t,i[r])):t!==i}){let[s,n]=(0,t.useState)(e);a(s,e)&&(r(e,s),n(e))}e.s(["useOnChange",()=>i])},297573,e=>{"use strict";var t=e.i(83313);e.i(320088);var i=e.i(374995);let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,a=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,s=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let i,r=getComputedStyle(e,null);return a(r.overflowY,t)||a(r.overflowX,t)||!!(i=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(i.clientHeight<e.scrollHeight||i.clientWidth<e.scrollWidth)}return!1},n=(e,t,i,r,a,s,n,l)=>s<e&&n>t||s>e&&n<t?0:s<=e&&l<=i||n>=t&&l>=i?s-e-r:n>t&&l<i||s<e&&l>i?n-t+a:0,l=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},o=(e,t)=>{var i,a,o,c;let d;if("undefined"==typeof document)return[];let{scrollMode:m,block:h,inline:u,boundary:p,skipOverflowHiddenElements:x}=t,g="function"==typeof p?p:e=>e!==p;if(!r(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,b=[],v=e;for(;r(v)&&g(v);){if((v=l(v))===f){b.push(v);break}null!=v&&v===document.body&&s(v)&&!s(document.documentElement)||null!=v&&s(v,x)&&b.push(v)}let y=null!=(a=null==(i=window.visualViewport)?void 0:i.width)?a:innerWidth,w=null!=(c=null==(o=window.visualViewport)?void 0:o.height)?c:innerHeight,{scrollX:j,scrollY:N}=window,{height:_,width:k,top:S,right:T,bottom:C,left:z}=e.getBoundingClientRect(),{top:M,right:I,bottom:E,left:L}={top:parseFloat((d=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(d.scrollMarginRight)||0,bottom:parseFloat(d.scrollMarginBottom)||0,left:parseFloat(d.scrollMarginLeft)||0},A="start"===h||"nearest"===h?S-M:"end"===h?C+E:S+_/2-M+E,P="center"===u?z+k/2-L+I:"end"===u?T+I:z-L,R=[];for(let e=0;e<b.length;e++){let t=b[e],{height:i,width:r,top:a,right:l,bottom:o,left:c}=t.getBoundingClientRect();if("if-needed"===m&&S>=0&&z>=0&&C<=w&&T<=y&&(t===f&&!s(t)||S>=a&&C<=o&&z>=c&&T<=l))break;let d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),x=parseInt(d.borderTopWidth,10),g=parseInt(d.borderRightWidth,10),v=parseInt(d.borderBottomWidth,10),M=0,I=0,E="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-g:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-x-v:0,$="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,O="offsetHeight"in t?0===t.offsetHeight?0:i/t.offsetHeight:0;if(f===t)M="start"===h?A:"end"===h?A-w:"nearest"===h?n(N,N+w,w,x,v,N+A,N+A+_,_):A-w/2,I="start"===u?P:"center"===u?P-y/2:"end"===u?P-y:n(j,j+y,y,p,g,j+P,j+P+k,k),M=Math.max(0,M+N),I=Math.max(0,I+j);else{M="start"===h?A-a-x:"end"===h?A-o+v+L:"nearest"===h?n(a,o,i,x,v+L,A,A+_,_):A-(a+i/2)+L/2,I="start"===u?P-c-p:"center"===u?P-(c+r/2)+E/2:"end"===u?P-l+g+E:n(c,l,r,p,g+E,P,P+k,k);let{scrollLeft:e,scrollTop:s}=t;M=0===O?0:Math.max(0,Math.min(s+M/O,t.scrollHeight-i/O+L)),I=0===$?0:Math.max(0,Math.min(e+I/$,t.scrollWidth-r/$+E)),A+=s-M,P+=e-I}R.push({el:t,top:M,left:I})}return R};var c=e.i(883580),d=(0,i.createContext)([]),m=(0,i.createContext)({current:null});function h(){return(0,i.useContext)(d).at(-1)}function u(){return(0,i.useContext)(d)}function p({containerRef:e,children:t}){return(0,c.jsx)(m.Provider,{value:e,children:t})}function x({toc:e,single:t=!0,children:r}){let a=(0,i.useMemo)(()=>e.map(e=>e.url.split("#")[1]),[e]);return(0,c.jsx)(d.Provider,{value:function(e,t){let[r,a]=(0,i.useState)([]);return(0,i.useEffect)(()=>{let i=[],r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!i.includes(t.target.id)?i=[...i,t.target.id]:!t.isIntersecting&&i.includes(t.target.id)&&(i=i.filter(e=>e!==t.target.id));i.length>0&&a(i)},{rootMargin:t?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1});function s(){let i=document.scrollingElement;if(!i)return;let r=i.scrollTop;r<=0&&t?a(e.slice(0,1)):r+i.clientHeight>=i.scrollHeight-6&&a(i=>i.length>0&&!t?e.slice(e.indexOf(i[0])):e.slice(-1))}for(let t of e){let e=document.getElementById(t);e&&r.observe(e)}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s),r.disconnect()}},[t,e]),t?r.slice(0,1):r}(a,t),children:r})}var g=(0,i.forwardRef)(({onActiveChange:e,...r},a)=>{let s=(0,i.useContext)(m),n=u(),l=(0,i.useRef)(null),d=function(...e){return t=>
9{e.forEach(e=>{"function"==typeof e?e(t):null!==e&&(e.current=t)})}}(l,a),h=n.includes(r.href.slice(1));return(0,t.useOnChange)(h,t=>{let i=l.current;i&&(t&&s.current&&function(e,t){let i;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r={top:parseFloat((i=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(o(e,t));let a="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:s,left:n}of o(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=s-r.top+r.bottom,t=n-r.left+r.right;i.scroll({top:e,left:t,behavior:a})}}(i,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:s.current}),e?.(t))}),(0,c.jsx)("a",{ref:d,"data-active":h,...r,children:r.children})});g.displayName="TOCItem",e.s(["AnchorProvider",()=>x,"ScrollProvider",()=>p,"TOCItem",()=>g,"useActiveAnchor",()=>h,"useActiveAnchors",()=>u],297573)},838052,e=>{"use strict";var t=e.i(374995);let i={search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Choose a language",nextPage:"Next Page",previousPage:"Previous Page",chooseTheme:"Theme",editOnGithub:"Edit on GitHub"},r=(0,t.createContext)({text:i});function a(e){let{text:t}=s();return t[e.label]}function s(){return(0,t.useContext)(r)}e.s(["I18nContext",0,r,"I18nLabel",()=>a,"defaultTranslations",0,i,"useI18n",()=>s])},165330,e=>{"use strict";e.i(83313),e.i(320088),e.s([])},366255,315240,e=>{"use strict";var t=e.i(883580),i=e.i(297573),r=e.i(374995);e.i(910716);var a=e.i(266438),s=e.i(838052);e.i(165330);var n=e.i(83313),l=e.i(941211);function o(e,t){if(0===t.length||0===e.clientHeight)return[0,0];let i=Number.MAX_VALUE,r=0;for(let a of t){let t=e.querySelector(`a[href="#${a}"]`);if(!t)continue;let s=getComputedStyle(t);i=Math.min(i,t.offsetTop+parseFloat(s.paddingTop)),r=Math.max(r,t.offsetTop+t.clientHeight-parseFloat(s.paddingBottom))}return[i,r-i]}function c(e,t){e.style.setProperty("--fd-top",`${t[0]}px`),e.style.setProperty("--fd-height",`${t[1]}px`)}function d({containerRef:e,...a}){let s=i.useActiveAnchors(),d=(0,r.useRef)(null),m=(0,l.useEffectEvent)(()=>{e.current&&d.current&&c(d.current,o(e.current,s))});return(0,r.useEffect)(()=>{if(!e.current)return;let t=e.current;m();let i=new ResizeObserver(m);return i.observe(t),()=>{i.disconnect()}},[e,m]),(0,n.useOnChange)(s,()=>{e.current&&d.current&&c(d.current,o(e.current,s))}),(0,t.jsx)("div",{ref:d,role:"none",...a})}e.s(["TocThumb",()=>d],315240);var m=e.i(574939);let h=(0,r.createContext)([]);function u(){return(0,r.useContext)(h)}function p({toc:e,children:r,...a}){return(0,t.jsx)(h,{value:e,children:(0,t.jsx)(i.AnchorProvider,{toc:e,...a,children:r})})}function x({ref:e,className:s,...n}){let l=(0,r.useRef)(null);return(0,t.jsx)("div",{ref:(0,m.mergeRefs)(l,e),className:(0,a.cn)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",s),...n,children:(0,t.jsx)(i.ScrollProvider,{containerRef:l,children:n.children})})}function g({ref:e,className:i,...n}){let l=(0,r.useRef)(null),o=u(),{text:c}=(0,s.useI18n)();return 0===o.length?(0,t.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:c.tocNoHeadings}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{containerRef:l,className:"absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"}),(0,t.jsx)("div",{ref:(0,m.mergeRefs)(e,l),className:(0,a.cn)("flex flex-col border-s border-fd-foreground/10",i),...n,children:o.map(e=>(0,t.jsx)(f,{item:e},e.url))})]})}function f({item:e}){return(0,t.jsx)(i.TOCItem,{href:e.url,className:(0,a.cn)("prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",e.depth<=2&&"ps-3",3===e.depth&&"ps-6",e.depth>=4&&"ps-8"),children:e.title})}e.s(["TOCItems",()=>g,"TOCProvider",()=>p,"TOCScrollArea",()=>x,"useTOCItems",()=>u],366255)},896176,802270,765733,e=>{"use strict";var t=e.i(889522);let i=(0,t.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["CalendarIcon",()=>i],896176);let r=(0,t.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["ListIcon",()=>r],802270);var a=e.i(883580),s=e.i(521322),n=e.i(866273),l=e.i(199978);e.i(741820);var o=e.i(331597);function c(e){let t,i,r=(0,s.c)(4),{items:n}=e;return r[0]!==n?(t=n.map(d),r[0]=n,r[1]=t):t=r[1],r[2]!==t?(i=(0,a.jsx)("nav",{className:"text-muted-foreground flex items-center text-sm md:px-3",children:t}),r[2]=t,r[3]=i):i=r[3],i}function d(e,t){let i=e.is_active;return(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)(l.Link,{href:e.url||"",className:`hover:text-foreground line-clamp-1 flex min-w-8 items-center gap-2 transition-colors ${i?"text-primary hover:text-primary font-medium":""}`,children:[e.icon&&(0,a.jsx)(o.SmartIcon,{name:e.icon,className:"size-4"}),e.title]}),!i&&(0,a.jsx)(n.ChevronRight,{className:"text-muted-foreground
9/40 mx-2 h-4 w-4"})]},t)}e.s(["Crumb",()=>c],765733)}]);
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.