1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[858],{84472:function(e,t,s){Promise.resolve().then(s.bind(s,74582)),Promise.resolve().then(s.bind(s,56378)),Promise.resolve().then(s.bind(s,6906))},74582:function(e,t,s){"use strict";s.d(t,{default:function(){return l}});var a=s(82841),n=s(19790),r=s(14916),i=s(48743);function l(){let[e,t]=(0,n.useState)(!0),s=[{name:"GPT Image 2",path:"/image/gpt-image-2"},{name:"Seedance 2 Pro",path:"/videos/ai-video-generator"}];return e?(0,a.jsx)("div",{className:"max-w-10xl mx-auto",children:(0,a.jsxs)("div",{className:"bg-gradient-to-r from-[#4461F2] to-[#7E3BF2] text-white py-2 px-4 shadow-lg relative",role:"alert",children:[(0,a.jsx)("button",{onClick:()=>t(!1),className:"absolute top-2 right-2 sm:top-1/2 sm:-translate-y-1/2 sm:right-3 text-white/80 hover:text-white transition-colors duration-200","aria-label":"Close",children:(0,a.jsx)("svg",{className:"h-4 w-4 sm:h-5 sm:w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,a.jsx)("div",{className:"sm:flex sm:items-center sm:justify-center",children:(0,a.jsxs)("div",{className:"text-center sm:text-left pr-6",children:[(0,a.jsxs)("p",{className:"text-xs sm:text-sm mb-2 sm:mb-0 sm:flex sm:items-center sm:gap-3",children:[(0,a.jsx)("span",{className:"text-white font-normal",children:"\uD83C\uDF89 New models available!"}),(0,a.jsx)("span",{className:"hidden sm:flex sm:items-center",children:s.map((e,t)=>(0,a.jsxs)("span",{className:"flex items-center",children:[(0,a.jsxs)(r.default,{href:e.path,className:"inline-flex items-center gap-1.5 font-semibold text-yellow-300 hover:text-yellow-200 transition-colors underline decoration-white/40 hover:decoration-yellow-200/60 underline-offset-2",children:[e.name,(0,a.jsx)(i.Z,{className:"h-3.5 w-3.5"})]}),t<s.length-1&&(0,a.jsx)("span",{className:"mx-2 text-white/50",children:"|"})]},e.path))})]}),(0,a.jsx)("div",{className:"flex flex-wrap justify-center gap-2 text-xs sm:hidden",children:s.map((e,t)=>(0,a.jsxs)("span",{className:"flex items-center",children:[(0,a.jsxs)(r.default,{href:e.path,className:"inline-flex items-center gap-1 font-semibold text-white hover:text-yellow-200 transition-colors underline decoration-white/40 hover:decoration-yellow-200/60 underline-offset-2",children:[e.name,(0,a.jsx)(i.Z,{className:"h-3 w-3"})]}),t<s.length-1&&(0,a.jsx)("span",{className:"mx-1 text-white/50",children:"|"})]},e.path))})]})})]})}):null}},56378:function(e,t,s){"use strict";s.d(t,{default:function(){return O}});var a=s(82841),n=s(19790),r=s(1825),i=s(14837),l=s(40870);let o=r.fC,c=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.ck,{ref:t,className:(0,l.cn)("border-b",s),...n})});c.displayName="AccordionItem";let d=n.forwardRef((e,t)=>{let{className:s,children:n,...o}=e;return(0,a.jsx)(r.h4,{className:"flex",children:(0,a.jsxs)(r.xz,{ref:t,className:(0,l.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",s),...o,children:[n,(0,a.jsx)(i.Z,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});d.displayName=r.xz.displayName;let m=n.forwardRef((e,t)=>{let{className:s,children:n,...i}=e;return(0,a.jsx)(r.VY,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...i,children:(0,a.jsx)("div",{className:(0,l.cn)("pb-4 pt-0",s),children:n})})});m.displayName=r.VY.displayName;var u=s(6658),f=s(29197),x=s(52261),h=s(28967);let p=n.forwardRef((e,t)=>{let{className:s,children:n,...r}=e;return(0,a.jsx)(f.fC,{ref:t,className:(0,l.cn)("relative z-10 flex items-center",s),...r,children:n})});p.displayName=f.fC.displayName;let g=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(f.aV,{ref:t,className:(0,l.cn)("flex items-center gap-2",s),...n})});g.displayName=f.aV.displayName;let j=f.ck,N=(0,x.j)("group inline-flex h-10 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors hover:bg-accent/80 hover:text-accent-foreground focus:bg-accent/80 focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/70 data-[state=open]:bg-accent/70");n.forwardRef((e,t)=>
1{let{className:s,children:n,...r}=e;return(0,a.jsxs)(f.xz,{ref:t,className:(0,l.cn)(N(),"group",s),...r,children:[n," ",(0,a.jsx)(i.Z,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}).displayName=f.xz.displayName;let v=n.forwardRef((e,t)=>{let{className:s,children:n,textContent:r,afterText:o,onClick:c,...d}=e;return(0,a.jsxs)(f.xz,{ref:t,className:(0,l.cn)(N(),"group",s),onClick:e=>{c&&(e.preventDefault(),c())},...d,children:[n,r,(0,a.jsx)(i.Z,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"}),o]})});v.displayName="CustomNavigationMenuTrigger";let b=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(f.VY,{ref:t,className:(0,l.cn)("absolute top-[calc(100%+8px)] left-0 rounded-md bg-background/95 text-foreground shadow-md border border-border/30",s),...n})});b.displayName=f.VY.displayName;let y=n.forwardRef((e,t)=>{let{className:s,children:n,textContent:r,afterText:i,badge:o,href:c,target:d,...m}=e,u=(0,l.cn)("flex w-full items-center justify-between rounded-md px-4 py-2 text-sm transition-colors hover:bg-accent/80 hover:text-accent-foreground focus:bg-accent/80 focus:text-accent-foreground outline-none",s),f=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 min-w-0",children:[n,r]}),(0,a.jsxs)("div",{className:"flex items-center",children:[o&&(0,a.jsx)("span",{className:"ml-2 inline-flex items-center justify-center px-1.5 py-0.5 text-xs leading-none font-medium text-pink-700 bg-pink-100 rounded-full",children:o}),i]})]});return"string"==typeof c&&c.startsWith("/")&&!c.startsWith("//")&&"_blank"!==d?(0,a.jsx)(h.rU,{ref:t,href:c,className:u,...m,children:f}):(0,a.jsx)("a",{ref:t,href:c,target:d,className:u,...m,children:f})});var w=s(81255),k=s(6906),R=s(50159),Z=s(50537),z=s(87657),_=s(16634);function C(e){let{isIcon:t=!1}=e,s=(0,Z.useParams)().locale,n=(0,Z.useRouter)(),r=(0,Z.usePathname)();return(0,a.jsxs)(R.Ph,{value:s,onValueChange:e=>{if(e!==s){let t=r.replace("/".concat(s),"/".concat(e));t.startsWith("/".concat(e))||(t="/".concat(e).concat(t)),n.push(t)}},children:[(0,a.jsxs)(R.i4,{className:"flex items-center gap-x-2 border-none text-muted-foreground outline-none hover:bg-transparent focus:ring-0 focus:ring-offset-0",children:[(0,a.jsx)(z.Z,{className:"w-5 h-5"}),!t&&(0,a.jsx)("span",{className:"hidden md:block",children:_.he[s]})]}),(0,a.jsx)(R.Bw,{className:"z-50",children:Object.keys(_.he).map(e=>{let t=_.he[e];return(0,a.jsx)(R.Ql,{className:"cursor-pointer",value:e,children:t},e)})})]})}var V=s(45528),L=s(83915),D=s(28898);function F(){let e=(0,D.useTranslations)(),{setShowSignModal:t}=(0,L.b)();return(0,a.jsx)(u.z,{variant:"default",onClick:()=>t(!0),children:e("user.sign_in")})}var M=s(89192),S=s(23610),T=s(14916),Y=s(43304);function P(e){let{user:t}=e,s=(0,D.useTranslations)();return(0,a.jsxs)(S.h_,{children:[(0,a.jsx)(S.$F,{asChild:!0,children:(0,a.jsxs)(M.Avatar,{className:"cursor-pointer",children:[(0,a.jsx)(M.AvatarImage,{src:t.avatar_url,alt:t.nickname}),(0,a.jsx)(M.Q,{children:t.nickname})]})}),(0,a.jsxs)(S.AW,{className:"mx-4",children:[(0,a.jsx)(S.Ju,{className:"text-center truncate",children:t.nickname}),(0,a.jsx)(S.VD,{}),(0,a.jsx)(S.Xi,{className:"flex justify-center cursor-pointer",children:(0,a.jsx)(T.default,{href:"/my-orders",children:s("user.my_orders")})}),(0,a.jsx)(S.VD,{}),(0,a.jsx)(S.Xi,{className:"flex justify-center cursor-pointer",children:(0,a.jsx)(T.default,{href:"/my-credits",children:s("my_credits.title")})}),(0,a.jsx)(S.VD,{}),(0,a.jsx)(S.Xi,{className:"flex justify-center cursor-pointer",children:(0,a.jsx)(T.default,{href:"/my-videos",children:s("user.my_videos")})}),(0,a.jsx)(S.VD,{}),(0,a.jsx)(S.Xi,{className:"flex justify-center cursor-pointer",children:(0,a.jsx)(T.default,{href:"/my-images",children:"My Images"})}),(0,a.jsx)(S.VD,{}),(0,a.jsx)(S.Xi,{className:"flex justify-center cursor-pointer",onClick:()=>(0,Y.w7)(),children:s("user.sign_out")})]})]})}function E(){(0,D.useTranslations)();let{user:e}=(0,L.b)();return(0,a.jsx)("div",{className:"flex items-center gap-x-2 px-2",children:e?(0,a.jsx)(P,{user:e}):(0,a.jsx)(F,{})})}var A=s(64621),I=s(84758),U=s(82914),W=s(72195);function B(){let{theme:e,setTheme:t}=(0,L.b)(),s=function(s){s!==e&&((0,W.lK)(U.r.Theme,s,-1),t(s))};return(0,a.jsx)("div",{className:"flex items-center gap-x-2 px-2",children:"dark"===e?(0,a.jsx)(A.Z,{className:"cursor-pointer text-lg text-muted-foreground",onClick:()=>s("light"),width:80,height:20}):(0,a.jsx)(I.Z,{className:"cursor-pointer text-lg text-muted-foreground",onClick:()=>s("dark"),width:80,height:20})})}function H(e){let{href:t,target:s,children:n,...r}=e;return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")&&"_blank"!==s?(0,a.jsx)(h.rU,{href:t,...r,children:n}):(0,a.jsx)("a",{href:t,target:s,...r,children:n})}function O(e){var t,s,n,r,i,f,x,N,R,Z,z,_,L,D,F,M,S,T,Y,P;let{header:A}=e;if(A.disabled)return null;let I="absolute -top-2 -right-1 inline-flex items-center justify-center px-1.5 py-0.5 text-xs leading-none font-semibold text-white bg-gradient-to-r from-pink-500 to-red-500 rounded-full",U="inline-flex items-center justify-center px-1.5 py-0.5 text-xs leading-none font-medium text-pink-700 bg-pink-100 rounded-full";return(0,a.jsx)("section",{className:"pt-4 pb-2 relative z-50",children:(0,a.jsxs)("div",{className:"md:max-w-7xl mx-auto px-4",children:[(0,a.jsxs)("nav",{className:"hidden justify-between lg:flex",children:[(0,a.jsxs)("div",{className:"flex items-center gap-10",children:[(0,a.jsxs)(H,{href:(null===(t=A.brand)||void 0===t?void 0:t.url)||"",className:"flex items-center gap-2",children:[(null===(n=A.brand)||void 0===n?void 0:null===(s=n.logo)||void 0===s?void 0:s.src)&&(0,a.jsx)("img",{src:A.brand.logo.src,alt:A.brand.logo.alt||A.brand.title,className:"w-8"}),(null===(r=A.brand)||void 0===r?void 0:r.title)&&(0,a.jsx)("span",{className:"text-lg font-bold",children:(null===(i=A.brand)||void 0===i?void 0:i.title)||""})]}),(0,a.jsx)("div",{className:"flex items-center ml-4",children:(0,a.jsx)(p,{children:(0,a.jsx)(g,{children:null===(x=A.nav)||void 0===x?void 0:null===(f=x.items)||void 0===f?void 0:f.map((e,t)=>{if("mega"===e.type&&e.sections&&e.sections.length>0){let s=Math.max(1,Math.min(6,e.columns||2));return(0,a.jsxs)(j,{className:"relative",children:[(0,a.jsx)(v,{className:"text-white/80 text-base relative pt-2 pr-6",textContent:(0,a.jsxs)(a.Fragment,{children:[e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0 mr-2"}),(0,a.jsx)("span",{children:e.title})]}),afterText:e.badge&&(0,a.jsx)("span",{className:I,children:e.badge})}),(0,a.jsx)(b,{className:(0,l.cn)("p-4 max-w-[90vw] grid gap-4",1===s?"w-[420px]":"w-[600px]",1===s?"grid-cols-1":2===s?"grid-cols-2":3===s?"grid-cols-3":4===s?"grid-cols-4":5===s?"grid-cols-5":"grid-cols-6"),children:e.sections.map((e,t)=>{var s;return(0,a.jsxs)("div",{className:"min-w-0",children:[e.title&&(0,a.jsx)("div",{className:"px-2 pb-2 text-xs font-semibold uppercase tracking-wide text-white/70",children:e.title}),(0,a.jsx)("ul",{className:"flex flex-col",children:null===(s=e.items)||void 0===s?void 0:s.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsxs)(H,{href:e.url,target:e.target,className:(0,l.cn)("flex items-start gap-3 rounded-md p-3 transition-colors hover:bg-accent/80 focus:bg-accent/80","no-underline outline-none text-left"),children:[e.icon&&("string"==typeof e.icon&&e.icon.startsWith("/")?(0,a.jsx)("img",{src:e.icon,alt:e.title||"",className:"size-4 shrink-0 mt-1 rounded"}):(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0 mt-1"})),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-semibold truncate",children:e.title}),e.badge&&(0,a.jsx)("span",{className:U,children:e.badge})]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-white/70 mt-2 break-words whitespace-normal line-clamp-2",children:e.description})]})]})},t))})]},t)})})]},t)}if(e.children&&e.children.length>0){let s=Math.max(1,Math.min(2,e.columns||2));return(0,a.jsxs)(j,{className:"relative",children:[(0,a.jsx)(v,{className:"text-white/80 text-base relative pt-2 pr-6",textContent:(0,a.jsxs)(a.Fragment,{children:[e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0 mr-2"}),(0,a.jsx)("span",{children:e.title})]}),afterText:e.badge&&(0,a.jsx)("span",{className:I,children:e.badge})}),(0,a.jsx)(b,{className:(0,l.cn)("max-w-[90vw]",1===s?"w-[420px]":"w-[600px]"),children:(0,a.jsx)("ul",{className:(0,l.cn)("p-3 grid gap-2",1===s?"grid-cols-1":"grid-cols-2"),children:e.children.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(y,{className:(0,l.cn)("!px-3 !py-3"),href:e.url,target:e.target,textContent:(0,a.jsxs)(a.Fragment,{children:[e.icon&&("string"==typeof e.icon&&e.icon.startsWith("/")?(0,a.jsx)("img",{src:e.icon,alt:e.title||"",className:"size-4 shrink-0 mt-1 rounded"}):(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0 mt-1"})),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"text-sm font-semibold",children:e.title}),e.badge&&(0,a.jsx)("span",{className:U,children:e.badge})]}),e.description&&(0,a.jsx)("p",{className:"text-sm leading-snug text-white/70 mt-2 break-words whitespace-normal line-clamp-2",children:e.description})]})]})})},t))})})]},t)}return(0,a.jsx)(j,{children:(0,a.jsx)(y,{className:"text-white/80 text-base relative pt-2 pr-6",href:e.url,target:e.target,textContent:(0,a.jsxs)(a.Fragment,{children:[e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0 mr-2"}),(0,a.jsx)("span",{children:e.title})]}),afterText:e.badge&&(0,a.jsx)("span",{className:I,children:e.badge})})},t)})})})})]}),(0,a.jsxs)("div",{className:"shrink-0 flex gap-2 items-center",children:[A.show_locale&&(0,a.jsx)(C,{}),A.show_theme&&(0,a.jsx)(B,{}),null===(N=A.buttons)||void 0===N?void 0:N.map((e,t)=>(0,a.jsx)(u.z,{variant:e.variant,children:(0,a.jsxs)(h.rU,{href:e.url||"",target:e.target||"",className:"flex items-center gap-1",children:[e.title,e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0"})]})},t)),A.show_sign&&(0,a.jsx)(E,{})]})]}),(0,a.jsx)("div",{className:"block lg:hidden",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)(H,{href:(null===(R=A.brand)||void 0===R?void 0:R.url)||"",className:"flex items-center gap-2",children:[(null===(z=A.brand)||void 0===z?void 0:null===(Z=z.logo)||void 0===Z?void 0:Z.src)&&(0,a.jsx)("img",{src:A.brand.logo.src,alt:A.brand.logo.alt||A.brand.title,className:"w-8"}),(null===(_=A.brand)||void 0===_?void 0:_.title)&&(0,a.jsx)("span",{className:"text-xl font-bold",children:(null===(L=A.brand)||void 0===L?void 0:L.title)||""})]}),(0,a.jsxs)(w.yo,{children:[(0,a.jsx)(w.aM,{asChild:!0,children:(0,a.jsx)(u.z,{variant:"default",size:"icon",children:(0,a.jsx)(V.Z,{className:"size-2"})})}),(0,a.jsxs)(w.ue,{className:"overflow-y-auto",children:[(0,a.jsx)(w.Tu,{children:(0,a.jsx)(w.bC,{children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(null===(F=A.brand)||void 0===F?void 0:null===(D=F.logo)||void 0===D?void 0:D.src)&&(0,a.jsx)("img",{src:A.brand.logo.src,alt:A.brand.logo.alt||A.brand.title,className:"w-8"}),(null===(M=A.brand)||void 0===M?void 0:M.title)&&(0,a.jsx)("span",{className:"text-xl font-bold",children:(null===(S=A.brand)||void 0===S?void 0:S.title)||""})]})})}),(0,a.jsx)("div",{className:"mb-8 mt-8 flex flex-col gap-4",children:(0,a.jsx)(o,{type:"single",collapsible:!0,className:"w-full",children:null===(Y=A.nav)||void 0===Y?void 0:null===(T=Y.items)||void 0===T?void 0:T.map((e,t)=>"mega"===e.type&&e.sections&&e.sections.length>0?(0,a.jsxs)(c,{value:"item-".concat(t),className:"border-b-0",children:[(0,a.jsx)(d,{className:"mb-4 py-0 text-base font-semibold hover:no-underline text-left relative pt-2 pr-6",children:(0,a.jsx)("div",{className:"flex items-center justify-between w-full",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0"}),(0,a.jsx)("span",{children:e.title}),e.badge&&(0,a.jsx)("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-xs leading-none font-semibold text-white bg-gradient-to-r from-pink-500 to-red-500 rounded-full",children:e.badge})]})})}),(0,a.jsx)(m,{className:"mt-2",children:e.sections.map((e,t)=>{var s;return(0,a.jsxs)("div",{className:"mb-4",children:[e.title&&(0,a.jsx)("div",{className:"px-1 pb-2 text-xs font-semibold uppercase tracking-wide text-white/70",children:e.title}),(0,a.jsx)("div",{className:"flex flex-col",children:null===(s=e.items)||void 0===s?void 0:s.map((e,t)=>
1(0,a.jsxs)(H,{className:(0,l.cn)("flex select-none gap-4 rounded-md p-3 leading-none outline-none transition-colors hover:bg-accent/80 hover:text-accent-foreground focus:bg-accent/80 focus:text-accent-foreground"),href:e.url,target:e.target,children:[e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0"}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"text-sm font-semibold",children:e.title}),e.badge&&(0,a.jsx)("span",{className:(0,l.cn)("ml-2",U),children:e.badge})]})})]},t))})]},t)})})]},t):e.children&&e.children.length>0?(0,a.jsxs)(c,{value:"item-".concat(t),className:"border-b-0",children:[(0,a.jsx)(d,{className:"mb-4 py-0 text-base font-semibold hover:no-underline text-left relative pt-2 pr-6",children:(0,a.jsx)("div",{className:"flex items-center justify-between w-full",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0"}),(0,a.jsx)("span",{children:e.title}),e.badge&&(0,a.jsx)("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-xs leading-none font-semibold text-white bg-gradient-to-r from-pink-500 to-red-500 rounded-full",children:e.badge})]})})}),(0,a.jsx)(m,{className:"mt-2",children:e.children.map((e,t)=>
1(0,a.jsxs)(H,{className:(0,l.cn)("flex select-none gap-4 rounded-md p-3 leading-none outline-none transition-colors hover:bg-accent/80 hover:text-accent-foreground focus:bg-accent/80 focus:text-accent-foreground"),href:e.url,target:e.target,children:[e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0"}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"text-sm font-semibold",children:e.title}),e.badge&&(0,a.jsx)("span",{className:(0,l.cn)("ml-2",U),children:e.badge})]})})]},t))})]},t):(0,a.jsx)("div",{className:"mb-4 py-0 text-base font-semibold text-left relative pt-2 pr-6",children:(0,a.jsxs)(H,{href:e.url,target:e.target,className:"flex items-center gap-2",children:[e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0"}),(0,a.jsx)("span",{children:e.title}),e.badge&&(0,a.jsx)("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-xs leading-none font-semibold text-white bg-gradient-to-r from-pink-500 to-red-500 rounded-full",children:e.badge})]},t)}))})}),(0,a.jsx)("div",{className:"flex-1"}),(0,a.jsxs)("div",{className:"border-t pt-4",children:[(0,a.jsxs)("div",{className:"mt-2 flex flex-col gap-3",children:[null===(P=A.buttons)||void 0===P?void 0:P.map((e,t)=>(0,a.jsx)(u.z,{variant:e.variant,children:(0,a.jsxs)(h.rU,{href:e.url||"",target:e.target||"",className:"flex items-center gap-1",children:[e.title,e.icon&&(0,a.jsx)(k.default,{name:e.icon,className:"size-4 shrink-0"})]})},t)),A.show_sign&&(0,a.jsx)(E,{})]}),(0,a.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[A.show_locale&&(0,a.jsx)(C,{}),(0,a.jsx)("div",{className:"flex-1"}),A.show_theme&&(0,a.jsx)(B,{})]})]})]})]})]})})]})})}},6906:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return V}});var a=s(82841);s(19790);var n=s(29404),r=s(82875),i=s(65629),l=s(6249),o=s(24428),c=s(44408),d=s(90959),m=s(77933),u=s(64953),f=s(66831),x=s(36730),h=s(98902),p=s(59019),g=s(21695),j=s(75749),N=s(50499),v=s(55183),b=s(16474),y=s(551),w=s(31406),k=s(91430),R=s(86524),Z=s(5605),z=s(26631),_=s(69173);let C={RiArrowRightLine:n.Z,RiBrushFill:r.Z,RiImage2Line:i.Z,RiImageEditLine:l.Z,RiImageLine:i.Z,RiLayoutMasonryFill:o.Z,RiMagicLine:c.Z,RiPenNibFill:d.Z,RiPlayLine:m.Z,RiShareFill:u.Z,RiSparklingFill:c.Z,RiSparklingLine:c.Z,RiStackFill:f.Z,RiSwitchFill:x.Z,RiAddLine:h.Z,RiArticleLine:p.Z,RiBankCardLine:g.Z,RiEditLine:j.Z,RiEyeLine:N.Z,RiHomeLine:v.Z,RiOrderPlayLine:b.Z,RiUserLine:y.Z,RiVideoLine:w.Z,RiGithubLine:k.Z,RiDiscordLine:u.Z,RiTwitterLine:u.Z,"loader-2":R.Z,"image-plus":l.Z,image:i.Z,video:w.Z,type:Z.Z,layers:f.Z,music:z.Z,plus:h.Z,calculator:_.Z};function V(e){let{name:t,className:s}=e,n=C[t];return n?(0,a.jsx)(n,{className:s}):null}},89192:function(e,t,s){"use strict";s.d(t,{Avatar:function(){return l},AvatarImage:function(){return o},Q:function(){return c}});var a=s(82841),n=s(19790),r=s(23574),i=s(40870);let l=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.fC,{ref:t,className:(0,i.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...n})});l.displayName=r.fC.displayName;let o=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.Ee,{ref:t,className:(0,i.cn)("aspect-square h-full w-full",s),...n})});o.displayName=r.Ee.displayName;let c=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.NY,{ref:t,className:(0,i.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...n})});c.displayName=r.NY.displayName},6658:function(e,t,s){"use strict";s.d(t,{d:function(){return o},z:function(){return c}});var a=s(82841),n=s(19790),r=s(49995),i=s(52261),l=s(40870);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-14 roun
1ded-md px-10 text-lg",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:s,variant:n,size:i,asChild:c=!1,...d}=e,m=c?r.g7:"button";return(0,a.jsx)(m,{className:(0,l.cn)(o({variant:n,size:i,className:s})),ref:t,...d})});c.displayName="Button"},23610:function(e,t,s){"use strict";s.d(t,{$F:function(){return m},AW:function(){return u},Ju:function(){return x},VD:function(){return h},Xi:function(){return f},h_:function(){return d}});var a=s(82841),n=s(19790),r=s(76933),i=s(81588),l=s(39854),o=s(34338),c=s(40870);let d=r.fC,m=r.xz;r.ZA,r.Uv,r.Tr,r.Ee,n.forwardRef((e,t)=>{let{className:s,inset:n,children:l,...o}=e;return(0,a.jsxs)(r.fF,{ref:t,className:(0,c.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",s),...o,children:[l,(0,a.jsx)(i.Z,{className:"ml-auto"})]})}).displayName=r.fF.displayName,n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.tu,{ref:t,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...n})}).displayName=r.tu.displayName;let u=n.forwardRef((e,t)=>{let{className:s,sideOffset:n=4,...i}=e;return(0,a.jsx)(r.Uv,{children:(0,a.jsx)(r.VY,{ref:t,sideOffset:n,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...i})})});u.displayName=r.VY.displayName;let f=n.forwardRef((e,t)=>{let{className:s,inset:n,...i}=e;return(0,a.jsx)(r.ck,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",s),...i})});f.displayName=r.ck.displayName,n.forwardRef((e,t)=>{let{className:s,children:n,checked:i,...o}=e;return(0,a.jsxs)(r.oC,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:i,...o,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.wU,{children:(0,a.jsx)(l.Z,{className:"h-4 w-4"})})}),n]})}).displayName=r.oC.displayName,n.forwardRef((e,t)=>{let{className:s,children:n,...i}=e;return(0,a.jsxs)(r.Rk,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.wU,{children:(0,a.jsx)(o.Z,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=r.Rk.displayName;let x=n.forwardRef((e,t)=>{let{className:s,inset:n,...i}=e;return(0,a.jsx)(r.__,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",s),...i})});x.displayName=r.__.displayName;let h=n.forwardRef((e,t)=>{let{className:s,...n}=e;
1return(0,a.jsx)(r.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",s),...n})});h.displayName=r.Z0.displayName},50159:function(e,t,s){"use strict";s.d(t,{Bw:function(){return h},Ph:function(){return d},Ql:function(){return p},i4:function(){return u},ki:function(){return m}});var a=s(82841),n=s(19790),r=s(75287),i=s(14837),l=s(43708),o=s(39854),c=s(40870);let d=r.fC;r.ZA;let m=r.B4,u=n.forwardRef((e,t)=>{let{className:s,children:n,...l}=e;return(0,a.jsxs)(r.xz,{ref:t,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...l,children:[n,(0,a.jsx)(r.JO,{asChild:!0,children:(0,a.jsx)(i.Z,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=r.xz.displayName;let f=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.u_,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",s),...n,children:(0,a.jsx)(l.Z,{className:"h-4 w-4"})})});f.displayName=r.u_.displayName;let x=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.$G,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",s),...n,children:(0,a.jsx)(i.Z,{className:"h-4 w-4"})})});x.displayName=r.$G.displayName;let h=n.forwardRef((e,t)=>{let{className:s,children:n,position:i="popper",...l}=e;return(0,a.jsx)(r.h_,{children:(0,a.jsxs)(r.VY,{ref:t,className:(0,c.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:i,...l,children:[(0,a.jsx)(f,{}),(0,a.jsx)(r.l_,{className:(0,c.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(x,{})]})})});h.displayName=r.VY.displayName,n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.__,{ref:t,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",s),...n})}).displayName=r.__.displayName;let p=n.forwardRef((e,t)=>{let{className:s,children:n,hideIndicator:i=!1,...l}=e;return(0,a.jsxs)(r.ck,{ref:t,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...l,children:[!i&&(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.wU,{children:(0,a.jsx)(o.Z,{className:"h-4 w-4"})})}),(0,a.jsx)(r.eT,{children:n})]})});p.displayName=r.ck.displayName,n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",s),...n})}).displayName=r.Z0.displayName},81255:function(e,t,s){"use strict";s.d(t,{Tu:function(){return h},aM:function(){return d},bC:function(){return p},ue:function(){return x},yo:function(){return c}});var a=s(82841),n=s(19790),r=s(51561),i=s(52261),l=s(4557),o=s(40870);let c=r.fC,d=r.xz;r.x8;let m=r.h_,u=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.aV,{className:(0,o.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...n,ref:t})});u.displayName=r.aV.displayName;let f=(0,i.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),x=n.forwardRef((e,t)=>
1{let{side:s="right",className:n,children:i,...c}=e;return(0,a.jsxs)(m,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(r.VY,{ref:t,className:(0,o.cn)(f({side:s}),n),...c,children:[i,(0,a.jsxs)(r.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(l.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.VY.displayName;let h=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};h.displayName="SheetHeader";let p=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.Dx,{ref:t,className:(0,o.cn)("text-lg font-semibold text-foreground",s),...n})});p.displayName=r.Dx.displayName,n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.dk,{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",s),...n})}).displayName=r.dk.displayName},83915:function(e,t,s){"use strict";s.d(t,{AppContextProvider:function(){return o},b:function(){return l}});var a=s(82841),n=s(19790);s(87359);var r=s(43304);let i=(0,n.createContext)({}),l=()=>(0,n.useContext)(i),o=e=>{let{children:t}=e,{data:s}=(0,r.kP)(),[l,o]=(0,n.useState)(()=>{let e="dark";return["dark","light"].includes(e)?e:""}),[c,d]=(0,n.useState)(!1),[m,u]=(0,n.useState)(null);return(0,n.useEffect)(()=>{s&&s.user&&u(s.user)},[s]),(0,a.jsx)(i.Provider,{value:{theme:l,setTheme:o,showSignModal:c,setShowSignModal:d,user:m,setUser:u},children:t})}},16634:function(e,t,s){"use strict";s.d(t,{$O:function(){return o},al:function(){return r},ck:function(){return i},he:function(){return n},k1:function(){return a},zm:function(){return l}});let a=["en","zh","it"],n={en:"English",it:"Italiano"},r="en",i="as-needed",l=!1,o={}},28967:function(e,t,s){"use strict";s.d(t,{jD:function(){return o},rU:function(){return i}});var a=s(16634),n=s(2012);let r=(0,s(67965).R)({locales:a.k1,defaultLocale:a.al,localePrefix:a.ck,pathnames:a.$O,localeDetection:a.zm}),{Link:i,redirect:l,usePathname:o,useRouter:c}=(0,n.iV)(r)},72195:function(e,t,s){"use strict";s.d(t,{FE:function(){return n},lK:function(){return r}});var a=s(54315);let n=e=>{let t=localStorage.getItem(e);if(!t)return null;let s=t.split(":");if(!s||s.length<2)return null;let n=Number(s[0]),r=(0,a.u3)();if(-1!==n&&n<r)return i(e),null;let l=s[0]+":";return t.replace(l,"")},r=(e,t,s)=>{localStorage.setItem(e,s+":"+t)},i=e=>{localStorage.removeItem(e)}},54315:function(e,t,s){"use strict";s.d(t,{p6:function(){return n},u3:function(){return a}});let a=()=>Date.parse(new Date().toUTCString())/1e3;function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss",s=new Date(e),a=e=>e.toString().padStart(2,"0"),n=s.getFullYear(),r=a(s.getMonth()+1),i=a(s.getDate()),l=a(s.getHours()),o=a(s.getMinutes()),c=a(s.getSeconds());return"MM-DD HH:mm"===t?"".concat(r,"-").concat(i," ").concat(l,":").concat(o):"".concat(n,"-").concat(r,"-").concat(i," ").concat(l,":").concat(o,":").concat(c)}},40870:function(e,t,s){"use strict";s.d(t,{cn:function(){return r}});var a=s(21118),n=s(64954);function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,n.m6)((0,a.W)(t))}},82914:function(e,t,s){"use strict";s.d(t,{r:function(){return a}});let a={Theme:"THEME"}}},function(e){e.O(0,[4746,9785,7951,7893,5189,3304,8936,6911,8898,5242,1265,9390,1229,1744],function(){return e(e.s=84472)}),_N_E=e.O()}]);
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.