PageSourceSearch

https://seedance2.live/_next/static/chunks/app/%5Blocale%5D/layout-d35667a16b35b4f5.js

js seedance2.live collected 2026-10-04 02:18:13 UTC 34,047 bytes, 48 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{3377:(e,t,r)=>{"use strict";r.d(t,{W:()=>h});var s=r(2100),a=r(49016),o=r(29422),n=r(75260),i=r(6106),l=r(89825),d=r(37001),c=r(28609),u=r(72161),x=r(58595),m=r(55907);let p=[{day:1,credits:3},{day:2,credits:3},{day:3,credits:6,multiplier:2,isSpecial:!0},{day:4,credits:3},{day:5,credits:3},{day:6,credits:3},{day:7,credits:9,multiplier:3,isSpecial:!0}];function h({open:e,onOpenChange:t,onCheckinSuccess:r,isLoggedIn:h=!0}){let[g,f]=a.useState(!1),[b,y]=a.useState(!1),[j,v]=((0,c.rd)(),(0,c.a8)(),a.useState({streakCount:0,checkedDays:[],isCheckedToday:!1}));a.useEffect(()=>{e&&(f(!1),h&&w())},[e,h]);let w=async()=>{try{let e=await fetch("/api/checkin"),t=await e.json();t.success&&v({streakCount:t.data.streakCount,checkedDays:t.data.checkedDaysInCycle,isCheckedToday:t.data.checkedInToday})}catch(e){console.error("Failed to fetch check-in status:",e)}},k=async()=>{if(!h){t?.(!1);y(!0);return}if(g)return;f(!0);let e=j.streakCount;t?.(!1);try{let t=await fetch("/api/checkin",{method:"POST"}),s=await t.json();s.success&&s.data.success?(u.oR.success(s.data.message),(0,x.Cu)({streakDays:s.data.newStreakCount||e+1,rewardCredits:s.data.rewardCredits}),r?.(s.data.rewardCredits),(0,m.j)(e=>Array.isArray(e)&&"user-benefits"===e[0],void 0,{revalidate:!0})):s.data?.alreadyCheckedIn?u.oR.info("Today already checked in"):u.oR.error(s.error||s.data?.error||"Check-in failed")}catch(e){console.error("Check-in failed:",e),u.oR.error("Check-in failed, please try again")}},N=p.reduce((e,t)=>e+t.credits,0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.lG,{open:e,onOpenChange:t,children:(0,s.jsxs)(o.Cf,{className:"max-w-[420px] gap-0 overflow-hidden border bg-background p-0 rounded-2xl",children:[(0,s.jsx)(n.s6,{children:(0,s.jsx)(o.L3,{children:"Daily Check-In"})}),(0,s.jsxs)("div",{className:"space-y-5 p-6",children:[(0,s.jsxs)("div",{className:"space-y-2 text-center",children:[(0,s.jsx)("div",{className:"mx-auto flex size-14 items-center justify-center rounded-full border border-primary/30 bg-primary/10 text-2xl",children:"\uD83C\uDF81"}),(0,s.jsxs)("h2",{className:"text-2xl font-semibold leading-tight text-foreground",children:["Check in and claim"," ",(0,s.jsx)("span",{className:"text-primary",children:"10 free credits"})]}),(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Plus earn"," ",(0,s.jsxs)("span",{className:"font-semibold text-primary",children:[N," more credits"]})," ","in a 7-day streak"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-2 rounded-2xl border border-border bg-muted p-3",children:[{icon:"\uD83C\uDFAC",text:"~5 videos",tags:["Sora2","Veo3"]},{icon:"\uD83D\uDDBC️",text:"~15 images",tags:["Flux","SD"]},{icon:"\uD83C\uDFB5",text:"~30 songs",tags:["Suno"]}].map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"text-sm",children:e.icon}),(0,s.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:e.text}),e.tags.map(t=>(0,s.jsx)("span",{className:"border border-border bg-card px-1.5 py-0.5 font-mono text-[9px] tracking-wide text-primary rounded-full",children:t},`${e.text}-${t}`))]},e.text))}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,s.jsx)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground",children:"DAILY REWARDS"}),(0,s.jsx)("span",{className:"border border-primary/40 bg-primary/10 px-3 py-1 text-sm font-semibold tracking-wide text-primary rounded-full",children:"UP TO 9 CREDITS"})]}),(0,s.jsx)("div",{className:"grid grid-cols-7 gap-1 rounded-2xl border border-border bg-card p-1.5",children:p.map(e=>{let t=j.checkedDays.includes(e.day),r=j.checkedDays.length+1===e.day&&!j.isCheckedToday;return(0,s.jsxs)("div",{className:(0,d.cn)("relative rounded-[10px] px-1 py-2 text-center transition-colors",t&&"bg-primary",r&&"border border-primary bg-primary/10",!t&&!r&&"border border-border bg-muted/50"),children:[e.multiplier&&(0,s.jsxs)("div",{className:"absolute -right-1 -top-1 rounded-full border border-primary/30 bg-primary/20 px-1 py-0.5 text-[10px] font-semibold text-primary",children:[e.multiplier,"x"]}),(0,s.jsxs)("div",{className:(0,d.cn)("text-base font-semibold leading-none",t?"text-primary-foreground":"text-foreground"),children:["+",e.credits]}),(0,s.jsxs)("div",{className:(0,d.cn)("mt-1 font-mono text-[9px] tracking-wide",t?"text-primary-foreground
1/75":"text-muted-foreground"),children:["Day ",e.day]}),t&&(0,s.jsx)("div",{className:"absolute bottom-0.5 left-1/2 -translate-x-1/2 text-[10px] text-primary-foreground",children:"✓"})]},e.day)})}),(0,s.jsx)(i.$,{onClick:k,disabled:j.isCheckedToday||g,className:(0,d.cn)("h-12 w-full rounded-2xl text-sm font-semibold uppercase tracking-wide",j.isCheckedToday?"cursor-default bg-muted text-muted-foreground":"bg-primary text-primary-foreground hover:bg-primary/90"),size:"lg",children:g?(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"size-4 animate-spin rounded-full border-2 border-current border-t-transparent"}),"CHECKING IN..."]}):j.isCheckedToday?(0,s.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)("span",{className:"text-primary",children:"●"}),"ALREADY CHECKED IN TODAY"]}):(0,s.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)("span",{className:"text-lg",children:"\uD83C\uDF81"}),"CHECK IN NOW"]})}),j.streakCount>0&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 rounded-2xl border border-border bg-muted p-2",children:[(0,s.jsx)("span",{className:"text-sm",children:"\uD83D\uDD25"}),(0,s.jsx)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground",children:"CURRENT STREAK:"}),(0,s.jsxs)("span",{className:"text-base font-semibold text-primary",children:[j.streakCount," days"]})]}),(0,s.jsx)("p",{className:"text-center font-mono text-[10px] tracking-wide text-muted-foreground",children:"⚠ Check-in resets if a day is missed"})]})]})}),(0,s.jsx)(l.A,{open:b,onOpenChange:y})]})}},3426:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(2100);r(49689);let a=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(s.Fragment,{})})},19620:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var s=r(2100),a=r(41836),o=r(98676),n=r(49016);let i="phc_2Vn1UkfRXvwJ5M1M4e61EvTDdr21qQp1JFrRPTjecwK",l="https://us.i.posthog.com";function d({children:e}){return((0,n.useEffect)(()=>{if(!i||!l)return;let e=setTimeout(()=>{a.Ay.init(i,{api_host:l,person_profiles:"identified_only",capture_pageview:!1,capture_pageleave:!0,autocapture:!1})},3e3);return()=>clearTimeout(e)},[]),i&&l)?(0,s.jsx)(o.so,{client:a.Ay,children:e}):(0,s.jsx)(s.Fragment,{children:e})}},21828:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var s=r(59387),a=r(49016);function o(){let{data:e}=s.y.useSession(),[t,r]=(0,a.useState)(!1),o=e?.user?.email,n=e?.user?.name,i=e?.user?.image;return(0,a.useEffect)(()=>{},[t]),(0,a.useEffect)(()=>{},[t]),(0,a.useEffect)(()=>{o&&t&&(window.$crisp=window.$crisp||[],window.$crisp.push(["set","user:email",[o]]),n&&window.$crisp.push(["set","user:nickname",[n]]),i&&window.$crisp.push(["set","user:avatar",[i]]))},[o,n,i,t]),null}},25129:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(49016);let a=()=>{let e="vet8lw0fh7";return(0,s.useEffect)(()=>{if(!e)return;let t=setTimeout(()=>{r.e(6236).then(r.bind(r,86236)).then(t=>{t.default.init(e)})},3e3);return()=>clearTimeout(t)},[e]),null}},26939:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var s=r(2100),a=r(37001),o=r(49016);function n({className:e}){return(0,s.jsx)("div",{className:(0,a.cn)("w-[10px] h-[6px] rounded-sm bg-background",e)})}function i({className:e}){return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:(0,a.cn)("w-5 h-5 text-primary",e),children:[(0,s.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"1",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("rect",{x:"5",y:"7",width:"2",height:"1.5",rx:"0.5",fill:"currentColor"}),(0,s.jsx)("rect",{x:"5",y:"11",width:"2",height:"1.5",rx:"0.5",fill:"currentColor"}),(0,s.jsx)("rect",{x:"5",y:"15",width:"2",height:"1.5",rx:"0.5",fill:"currentColor"}),(0,s.jsx)("rect",{x:"17",y:"7",width:"2",height:"1.5",rx:"0.5",fill:"currentColor"}),(0,s.jsx)("rect",{x:"17",y:"11",width:"2",height:"1.5",rx:"0.5",fill:"currentColor"}),(0,s.jsx)("rect",{x:"17",y:"15",width:"2",height:"1.5",rx:"0.5",fill:"currentColor"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor"})]})}let l=o.forwardRef(({variant:e="default",demo:t=!1,onAcceptCallback:r=()=>{},onDeclineCallback:l=()=>{},className:d,description:c="We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.",learnMoreHref:u="#",...x},m)=>
1{let[p,h]=o.useState(!1),[g,f]=o.useState(!1),[b,y]=o.useState(!1),j=o.useCallback(()=>{h(!1),document.cookie="cookieConsent=true; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/; SameSite=Lax",setTimeout(()=>{f(!0)},500),r()},[r]),v=o.useCallback(()=>{h(!1),setTimeout(()=>{f(!0)},500),l()},[l]);if(o.useEffect(()=>{try{h(!0),document.cookie.includes("cookieConsent=true")&&!t&&(h(!1),setTimeout(()=>{f(!0)},500))}catch(e){}},[t]),g)return null;let w=(0,a.cn)("fixed z-50 transition-all duration-500 ease-out",p?"translate-y-0 opacity-100":"translate-y-full opacity-0",d),k={ref:m,className:(0,a.cn)(w,"mini"===e?"left-0 right-0 sm:left-4 bottom-4 w-full sm:max-w-2xl":"bottom-0 left-0 right-0 sm:left-4 sm:bottom-4 w-full sm:max-w-md"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),...x},N=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,a.cn)("absolute top-2 left-2 w-3 h-3 border-l-2 border-t-2 border-primary transition-opacity duration-300",b?"opacity-100":"opacity-0")}),(0,s.jsx)("div",{className:(0,a.cn)("absolute top-2 right-2 w-3 h-3 border-r-2 border-t-2 border-primary transition-opacity duration-300",b?"opacity-100":"opacity-0")}),(0,s.jsx)("div",{className:(0,a.cn)("absolute bottom-2 left-2 w-3 h-3 border-b-2 border-l-2 border-primary transition-opacity duration-300",b?"opacity-100":"opacity-0")}),(0,s.jsx)("div",{className:(0,a.cn)("absolute bottom-2 right-2 w-3 h-3 border-b-2 border-r-2 border-primary transition-opacity duration-300",b?"opacity-100":"opacity-0")})]});return"default"===e?(0,s.jsx)("div",{...k,children:(0,s.jsxs)("div",{className:"relative m-3 overflow-hidden border border-border bg-muted",children:[(0,s.jsx)(N,{}),(0,s.jsxs)("div",{className:"p-5 space-y-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(i,{}),(0,s.jsx)("h3",{className:"font-semibold text-lg tracking-wide uppercase text-foreground",children:"Data Consent"})]})}),(0,s.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:c}),(0,s.jsx)("a",{href:u,className:"inline-block font-mono text-xs tracking-wide transition-colors duration-200 hover:underline text-primary",children:"Learn more →"}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)("button",{onClick:v,className:"flex-1 border border-border bg-card px-4 py-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground transition-all duration-300 hover:border-primary hover:text-primary",children:"Decline"}),(0,s.jsx)("button",{onClick:j,className:"flex-1 bg-primary px-4 py-3 text-sm font-semibold uppercase tracking-wider text-background transition-all duration-300 hover:-translate-y-px hover:shadow-[0_6px_24px_hsl(var(--primary)/0.4)]",children:"Accept"})]})]})]})}):"small"===e?(0,s.jsx)("div",{...k,children:(0,s.jsxs)("div",{className:"relative m-3 overflow-hidden border border-border bg-muted",children:[(0,s.jsx)(N,{}),(0,s.jsxs)("div",{className:"p-4 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"font-semibold text-sm tracking-wide uppercase text-foreground",children:"Cookies"})]}),(0,s.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:c}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("button",{onClick:v,className:"flex-1 border border-border bg-transparent px-3 py-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground transition-all duration-300 hover:border-primary hover:text-primary",children:"Decline"}),(0,s.jsx)("button",{onClick:j,className:"flex-1 bg-primary px-3 py-2 text-xs font-semibold uppercase tracking-wider text-background transition-all duration-300 hover:shadow-[0_4px_16px_hsl(var(--primary)/0.4)]",children:"Accept"})]})]})]})}):"mini"===e?(0,s.jsx)("div",{...k,children:(0,s.jsxs)("div",{className:"relative mx-3 flex items-center overflow-hidden border border-border bg-muted",children:[(0,s.jsx)("div",{className:"flex flex-col items-center gap-2 py-2 px-[6px] self-stretch bg-card",children:Array.from({length:3}).map((e,t)=>(0,s.jsx)(n,{className:"w-[6px] h-[10px]"},t))}),(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-4 py-3 px-4",children:[(0,s.jsx)("p",{className:"flex-1 text-xs sm:text-sm text-muted-foreground",children:c.length>80?c.slice(0,80)+"...":c}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:v,className:"border border-border px-3 py-1.5 font-mono text-[10px] uppercase tracking-wider text-muted-foreground transition-all duration-200 hover:border-primary hover:text-primary",children:"Decline"}),(0,s.jsx)("button",{onClick:j,className:"bg-primary px-3 py-1.5 font-mono text-[10px] uppercase tracking-wider text-background transition-all duration-200 hover:shadow-[0_2px_12px_hsl(var(--primary)/0.4)]",children:"Accept"})]})]}),(0,s.jsx)("div",{className:"flex flex-col items-center gap-2 py-2 px-[6px] self-stretch bg-card",children:Array.from({length:3}).map((e,t)=>(0,s.jsx)(n,{className:"w-[6px] h-[10px]"},t))})]})}):null});l.displayName="CookieConsent";var d=r(69303);function c({variant:e="default",description:t,learnMoreHref:r="/privacy-policy"}){let{hasResponded:a,mounted:o,acceptConsent:n}=(0,d.u)();return!o||a?null:(0,s.jsx)(l,{variant:e,description:t||"We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.",learnMoreHref:r,onAcceptCallback:n})}},29422:(e,t,r)=>{"use strict";r.d(t,{Cf:()=>x,Es:()=>p,HM:()=>c,L3:()=>h,c7:()=>m,lG:()=>i,rr:()=>g,zM:()=>l});var s=r(2100);r(49016);var a=r(56379),o=r(27977),n=r(37001);function i({...e}){return(0,s.jsx)(a.bL,{"data-slot":"dialog",...e})}function l({...e}){return(0,s.jsx)(a.l9,{"data-slot":"dialog-trigger",...e})}function d({...e}){return(0,s.jsx)(a.ZL,{"data-slot":"dialog-portal",...e})}function c({...e}){return(0,s.jsx)(a.bm,{"data-slot":"dialog-close",...e})}function u({className:e,...t}){return(0,s.jsx)(a.hJ,{"data-slot":"dialog-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-background/50",e),...t})}function x({className:e,children:t,showCloseButton:r=!0,...i}){return(0,s.jsxs)(d,{"data-slot":"dialog-portal",children:[(0,s.jsx)(u,{}),(0,s.jsxs)(a.UC,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
1ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg [will-change:transform,opacity] [contain:layout_style]",e),...i,children:[t,r&&(0,s.jsxs)(a.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,s.jsx)(o.A,{}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function m({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})}function p({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"dialog-footer",className:(0,n.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function h({className:e,...t}){return(0,s.jsx)(a.hE,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",e),...t})}function g({className:e,...t}){return(0,s.jsx)(a.VY,{"data-slot":"dialog-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...t})}},37729:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var s=r(2100),a=r(69303);function o({children:e,fallback:t=null}){let{consented:r,mounted:o}=(0,a.u)();return o?(0,s.jsx)(s.Fragment,{children:r?e:t}):null}r(49016)},39669:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(2100),a=r(35492),o=r(98676),n=r(49016);function i(){let e=(0,a.usePathname)(),t=(0,a.useSearchParams)(),r=(0,o.sf)();return(0,n.useEffect)(()=>{if(e&&r){let s=window.origin+e;t&&t.toString()&&(s+=`?${t.toString()}`),r.capture("$pageview",{$current_url:s})}},[e,t,r]),null}function l(){return(0,s.jsx)(n.Suspense,{fallback:null,children:(0,s.jsx)(i,{})})}},40552:(e,t,r)=>{"use strict";r.d(t,{CheckinReminder:()=>c});var s=r(2100),a=r(49016),o=r(3377),n=r(89825),i=r(59387);let l="checkin_reminder_dismissed";function d(){let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function c(){let{data:e,isPending:t}=i.y.useSession(),[r,c]=(0,a.useState)(!1),[u,x]=(0,a.useState)(!1),[m,p]=(0,a.useState)(!1),h=(0,a.useCallback)(async()=>{if(localStorage.getItem(l)!==d()){if(!e?.user){x(!0),p(!0);return}try{let e=await fetch("/api/checkin"),t=await e.json();t.success&&!t.data.checkedInToday&&c(!0)}catch(e){console.error("Failed to check check-in status:",e)}}},[e?.user]);return(0,a.useEffect)(()=>{if(t||localStorage.getItem(l)===d())return;let e=setTimeout(()=>{h()},12e4);return()=>clearTimeout(e)},[t,h]),(0,a.useEffect)(()=>{m&&e?.user&&(p(!1),x(!1),c(!0))},[e?.user,m]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.W,{open:r,onOpenChange:e=>{c(e),e||localStorage.setItem(l,d())}}),(0,s.jsx)(n.A,{open:u,onOpenChange:t=>{x(t),t||e?.user||(localStorage.setItem(l,d()),p(!1))}})]})}},41293:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>f});var s=r(2100),a=r(49016),o=r(42508),n=r(72161),i=r(28886),l=r(22790),d=r(98552),c=r(88699),u=r(16951);function x(){return(0,s.jsx)(i.A,{className:"size-5 text-emerald-500"})}function m(){return(0,s.jsx)(l.A,{className:"size-5 text-destructive"})}function p(){return(0,s.jsx)(d.A,{className:"size-5 text-amber-500"})}function h(){return(0,s.jsx)(c.A,{className:"size-5 text-primary"})}function g(){return(0,s.jsx)(u.A,{className:"size-5 animate-spin text-primary"})}let f=({...e})=>{let{resolvedTheme:t}=(0,o.D)(),[r,i]=a.useState(!1);return a.useEffect(()=>{i(!0)},[]),(0,s.jsx)(n.l$,{theme:r&&"dark"===t?"dark":"light",className:"toaster group",icons:{success:(0,s.jsx)(x,{}),info:(0,s.jsx)(h,{}),warning:(0,s.jsx)(p,{}),error:(0,s.jsx)(m,{}),loading:(0,s.jsx)(g,{})},toastOptions:{unstyled:!0,classNames:{toast:`
2            group toast
3            flex items-start gap-3
4            w-full px-4 py-3
5            rounded-xl
6            border border-border/80
7            bg-background/95 text-foreground
8            dark:bg-card/95 dark:text-card-foreground
9            shadow-lg shadow-black/10
10            backdrop-blur supports-[backdrop-filter]:bg-background/80
11            dark:supports-[backdrop-filter]:bg-card/80
12            data-[type=success]:border-emerald-500/30
13            data-[type=error]:border-destructive/35
14            data-[type=warning]:border-amber-500/35
15            data-[type=info]:border-primary/35
16          `,content:`
17            text-foreground
18            dark:text-card-foreground
19          `,title:`
20            text-sm font-medium leading-5
21            text-foreground
22            dark:text-card-foreground
23          `,description:`
24            mt-0.5 text-xs leading-5 text-muted-foreground
25          `,actionButton:`
26            h-8 rounded-md px-3
27            text-xs font-medium
28            bg-primary text-primary-foreground
29            hover:bg-primary/90
30            transition-all duration-200
31          `,cancelButton:`
32            h-8 rounded-md px-3
33            text-xs font-medium
34            border border-border text-muted-foreground
35            hover:bg-muted hover:text-foreground
36            transition-all duration-200
37          `,closeButton:`
38            rounded-md p-1 text-muted-foreground
39            hover:bg-muted hover:text-foreground
40            transition-colors duration-200
41          `}},...e})}},41802:(e,t,r)=>{Promise.resolve().then(r.bind(r,40552)),Promise.resolve().then(r.bind(r,59818)),Promise.resolve().then(r.bind(r,59041)),Promise.resolve().then(r.bind(r,26939)),Promise.resolve().then(r.bind(r,37729)),Promise.resolve().then(r.bind(r,21828)),Promise.resolve().then(r.bind(r,91444)),Promise.resolve().then(r.bind(r,25129)),Promise.resolve().then(r.bind(r,3426)),Promise.resolve().then(r.bind(r,39669)),Promise.resolve().then(r.bind(r,19620)),Promise.resolve().then(r.bind(r,97940)),Promise.resolve().then(r.bind(r,84759)),Promise.resolve().then(r.bind(r,75807)),Promise.resolve().then(r.bind(r,41293)),Promise.resolve().then(r.bind(r,6240)),Promise.resolve().then(r.bind(r,23697)),Promise.resolve().then(r.bind(r,74691)),Promise.resolve().then(r.bind(r,42508)),Promise.resolve().then(r.t.bind(r,95746,23)),Promise.resolve().then(r.t.bind(r,2776,23)),Promise.resolve().then(r.t.bind(r,70557,23))},54066:(e,t,r)=>{"use strict";r.d(t,{D:()=>a});var s=r(68397);let a=(0,r(37814).v)(e=>({showLanguageAlert:!1,setShowLanguageAlert:t=>e({showLanguageAlert:t}),dismissLanguageAlert:()=>{s.A.set("langAlertDismissed","true",{expires:30}),e({showLanguageAlert:!1})},getLangAlertDismissed:()=>"true"===s.A.get("langAlertDismissed")}))},59041:(e,t,r)=>{"use strict";r.d(t,{O:()=>l,PromoCodeCapture:()=>i,r:()=>d});var s=r(35492),a=r(49016);let o="promo_code",n="promo_code_expiry";function i(){let e=(0,s.useSearchParams)();return(0,a.useEffect)(()=>{let t=e.get("promo");t&&(localStorage.setItem(o,t.toUpperCase()),localStorage.setItem(n,String(Date.now()+2592e5)))},[e]),null}function l(){let e=localStorage.getItem(o),t=localStorage.getItem(n);return e&&t?Date.now()>Number(t)?(localStorage.removeItem(o),localStorage.removeItem(n),null):e:null}function d(){localStorage.removeItem(o),localStorage.removeItem(n)}},59818:(e,t,r)=>{"use strict";r.d(t,{LanguageDetectionAlert:()=>p});var s=r(2100),a=r(28609),o=r(37001),n=r(54066),i=r(36015),l=r(27977),d=r(71525),c=r(98485),u=r(49016);function x({seconds:e}){let t=2*Math.PI*18;return(0,s.jsxs)("div",{className:"relative w-14 h-14 flex items-center justify-center",children:[(0,s.jsxs)("svg",{className:"absolute inset-0 w-full h-full -rotate-90",children:[(0,s.jsx)("circle",{cx:"28",cy:"28",r:"18",fill:"none",strokeWidth:"2",className:"stroke-border"}),(0,s.jsx)("circle",{cx:"28",cy:"28",r:"18",fill:"none",strokeWidth:"2",strokeLinecap:"square",className:"stroke-primary transition-[stroke-dashoffset] duration-1000 ease-linear",strokeDasharray:t,strokeDashoffset:t-e/10*t})]}),(0,s.jsx)("div",{className:"absolute w-[1px] h-4 bg-border"}),(0,s.jsx)("div",{className:"absolute w-4 h-[1px] bg-border"}),(0,s.jsx)("span",{className:"font-semibold text-xl relative z-10 text-primary",children:e})]})}function m({className:e}){return(0,s.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",className:(0,o.cn)("w-4 h-4 text-primary",e),children:[(0,s.jsx)("circle",{cx:"10",cy:"10",r:"8",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,s.jsx)("ellipse",{cx:"10",cy:"10",rx:"8",ry:"3",stroke:"currentColor",strokeWidth:"1",fill:"none"}),(0,s.jsx)("ellipse",{cx:"10",cy:"10",rx:"3",ry:"8",stroke:"currentColor",strokeWidth:"1",fill:"none"}),(0,s.jsx)("line",{x1:"10",y1:"6",x2:"10",y2:"14",stroke:"currentColor",strokeWidth:"0.5"}),(0,s.jsx)("line",{x1:"6",y1:"10",x2:"14",y2:"10",stroke:"currentColor",strokeWidth:"0.5"})]})}function p(){let[e,t]=(0,u.useState)(10),[r,p]=(0,u.useState)(!1),[h,g]=(0,u.useState)(!1),f=(0,d.Ym)(),b=(0,c.c)("LanguageDetection"),[y,j]=(0,u.useState)(null),{showLanguageAlert:v,setShowLanguageAlert:w,dismissLanguageAlert:k,getLangAlertDismissed:N}=(0,n.D)(),C=(0,u.useCallback)(()=>{p(!1),setTimeout(()=>{k()},400)},[k]),S=(0,u.useCallback)(()=>{k()},[k]);return((0,u.useEffect)(()=>{let e=navigator.language.toLowerCase();if(!N()){let t=a.DT.locales.find(t=>t.toLowerCase()===e);if(!t){let[r,s]=e.split("-");"zh"===r&&("tw"===s||"hk"===s||"mo"===s)&&(t=a.DT.locales.find(e=>"zh-tw"===e))}if(!t){let r=e.split("-")[0];t=a.DT.locales.find(e=>e.startsWith(r))}t&&t!==f&&(j(t),w(!0),setTimeout(()=>p(!0),100))}},[f,N,w]),(0,u.useEffect)(()=>{let r;return v&&e>0&&(r=setInterval(()=>{t(e=>e-1)},1e3)),()=>{r&&clearInterval(r)}},[v,e]),(0,u.useEffect)(()=>{0===e&&v&&C()},[e,v,C]),v&&y)?(0,s.jsx)("div",{className:(0,o.cn)("fixed top-20 right-0 sm:right-4 z-50 mx-4 max-w-xs sm:max-w-sm","transform transition-all duration-400 ease-out",r?"translate-x-0 opacity-100":"translate-x-full opacity-0"),role:"banner","aria-live":"polite","aria-label":"Language detection alert",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:(0,s.jsxs)("div",{className:"relative overflow-hidden bg-muted border border-border",children:[(0,s.jsx)("div",{className:(0,o.cn)("absolute top-2 left-2 w-3 h-3 transition-opacity duration-300","border-l-2 border-t-2 border-primary",h?"opacity-100":"opacity-0")}),(0,s.jsx)("div",{className:(0,o.cn)("absolute top-2 right-2 w-3 h-3 transition-opacity duration-300","border-r-2 border-t-2 border-primary",h?"opacity-100":"opacity-0")}),(0,s.jsx)("div",{className:(0,o.cn)("absolute bottom-2 left-2 w-3 h-3 transition-opacity duration-300","border-l-2 border-b-2 border-primary",h?"opacity-100":"opacity-0")}),(0,s.jsx)("div",{className:(0,o.cn)("absolute bottom-2 right-2 w-3 h-3 transition-opacity duration-300","border-r-2 border-b-2 border-primary",h?"opacity-100":"opacity-0")}),(0,s.jsx)("div",{className:"flex items-center justify-center gap-3 py-[5px] bg-card",children:Array.from({length:10}).map((e,t)=>(0,s.jsx)("div",{className:"w-[8px] h-[5px] rounded-sm bg-background"},t))}),(0,s.jsxs)("div",{className:"flex items-start gap-4 p-4",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(x,{seconds:e})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0 pr-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(m,{}),(0,s.jsx)("h3",{className:"font-semibold text-sm tracking-wide uppercase text-foreground",children:b("title")})]}),(0,s.jsx)("p",{className:"text-xs leading-relaxed mb-4 text-muted-foreground",children:b("description")}),(0,s.jsxs)(a.N_,{href:"/",title:`${b("switchTo")} ${a.kf[y]}`,locale:y,onClick:S,className:(0,o.cn)("inline-flex items-center gap-2 py-2 px-4","font-semibold text-xs tracking-wider up
41percase","transition-all duration-300 group","bg-primary text-primary-foreground hover:shadow-lg hover:-translate-y-px"),"aria-label":`${b("switchTo")} ${a.kf[y]}`,children:[(0,s.jsxs)("span",{children:[b("switchTo")," ",a.kf[y]]}),(0,s.jsx)(i.A,{className:"w-3 h-3 transition-transform duration-200 group-hover:translate-x-0.5"})]})]}),(0,s.jsx)("button",{onClick:C,className:"absolute top-3 right-3 p-1 transition-all duration-200 text-muted-foreground hover:text-primary","aria-label":"Dismiss language suggestion",children:(0,s.jsx)(l.A,{className:"w-4 h-4"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 bg-card",children:[(0,s.jsx)("span",{className:"font-mono text-[8px] tracking-[0.15em] uppercase text-foreground",children:"LANG DETECTION \xb7 AUTO \xb7 ◆"}),(0,s.jsxs)("span",{className:"font-mono text-[10px] tracking-wider text-primary",children:["00:00:",e.toString().padStart(2,"0"),":00"]})]}),(0,s.jsx)("div",{className:"flex items-center justify-center gap-3 py-[5px] bg-card",children:Array.from({length:10}).map((e,t)=>(0,s.jsx)("div",{className:"w-[8px] h-[5px] rounded-sm bg-background"},t))})]})}):null}},69303:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var s=r(68397),a=r(49016);function o(){let[e,t]=(0,a.useState)(null),[r,o]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i(!0);try{let e=s.A.get("cookieConsent");"true"===e?(t(!0),o(!0)):"false"===e?(t(!1),o(!0)):(t(null),o(!1))}catch{t(null),o(!1)}},[]),{consented:e,hasResponded:r,mounted:n,acceptConsent:(0,a.useCallback)(()=>{s.A.set("cookieConsent","true",{expires:365,path:"/",sameSite:"lax"}),t(!0),o(!0)},[]),revokeConsent:(0,a.useCallback)(()=>{s.A.set("cookieConsent","false",{expires:365,path:"/",sameSite:"lax"}),t(!1),o(!0)},[])}}},75807:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(2100);r(49689);let a=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(s.Fragment,{})})},84759:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(2100);r(49689);let a=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(s.Fragment,{})})},89825:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var s=r(2100),a=r(85405),o=r(6106),n=r(29422),i=r(36551),l=r(44332),d=r(8513),c=r(27977),u=r(98485),x=r(67923),m=r.n(x),p=r(36684);function h({highlight:e,text:t}){return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.A,{className:"w-3.5 h-3.5 text-primary shrink-0",strokeWidth:3}),(0,s.jsxs)("p",{className:"font-mono text-xs text-foreground/80",children:[(0,s.jsx)("span",{className:"text-primary font-semibold",children:e})," ",t]})]})}function g({open:e,onOpenChange:t,onLoginSuccess:r}){return(0,u.c)("Login"),(0,s.jsx)(n.lG,{open:e,onOpenChange:t,children:(0,s.jsxs)(n.Cf,{className:"sm:max-w-[1100px] max-h-[90vh] p-0 gap-0 bg-background border border-primary/15 rounded-2xl overflow-hidden shadow-2xl shadow-primary/10",showCloseButton:!1,children:[(0,s.jsxs)(o.$,{variant:"ghost",size:"icon",onClick:()=>t(!1),className:"absolute right-5 top-12 z-10 text-muted-foreground hover:text-primary",children:[(0,s.jsx)(c.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]}),(0,s.jsxs)("div",{className:"flex flex-row",children:[(0,s.jsx)("div",{className:"relative bg-card hidden md:flex md:w-[310px] shrink-0",children:(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center p-2",children:(0,s.jsxs)("div",{className:"relative w-full aspect-[768/1366] max-h-[500px] overflow-hidden rounded-xl",children:[(0,s.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-contain",poster:(0,i.d)("/public/images/login-cover.avif"),children:(0,s.jsx)("source",{src:(0,i.d)("/public/videos/login.webm"),type:"video/webm"})}),(0,s.jsxs)("div",{className:"absolute bottom-3 left-3 flex items-center gap-2 bg-background/80 border border-border rounded-md px-2 py-1",children:[(0,s.jsx)("span",{className:"h-2 w-2 animate-pulse rounded-full bg-destructive"}),(0,s.jsx)("span",{className:"font-mono text-[9px] tracking-wider text-muted-foreground",children:"SHOWCASE"})]})]})})}),(0,s.jsxs)("div",{className:"flex-1 px-6 py-5 sm:px-8 sm:py-6 relative bg-background",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)(n.L3,{asChild:!0,children:(0,s.jsxs)("h2",{className:"font-semibold text-2xl sm:text-3xl tracking-wide text-foreground",children:["Welcome to"," ",(0,s.jsx)("span",{className:"text-primary",children:l.j.name})]})})}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[(0,s.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Log in within"}),(0,s.jsx)(a.r,{initialMinutes:10,showMilliseconds:!0,storageKey:"login"}),(0,s.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"to get:"})]}),(0,s.jsxs)("div",{className:"space-y-2 mb-4 pb-4 border-b border-dashed border-border",children:[(0,s.jsx)(h,{highlight:"10",text:"Free Credits"}),(0,s.jsx)(h,{highlight:"Free",text:"video & image generation"}),(0,s.jsx)(h,{highlight:"Free",text:"music & voice generation"})]}),(0,s.jsx)(p.A,{onLoginSuccess:()=>{t(!1),r?.()}}),(0,s.jsxs)("p",{className:"mt-4 font-mono text-[10px] text-muted-foreground
41/50 text-center tracking-wide",children:["By continuing, you agree to our"," ",(0,s.jsx)(m(),{href:"/terms-of-service",className:"text-muted-foreground hover:text-primary underline",children:"Terms"})," ","and"," ",(0,s.jsx)(m(),{href:"/privacy-policy",className:"text-muted-foreground hover:text-primary underline",children:"Privacy"}),"."]})]})]})]})})}},91444:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var s=r(2100),a=r(49689);let o="G-NBLLZT9ZPG",n=()=>(0,s.jsx)(s.Fragment,{children:o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.default,{strategy:"lazyOnload",src:`https://www.googletagmanager.com/gtag/js?id=${o}`}),(0,s.jsx)(a.default,{id:"gtag-init",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:`
42                window.dataLayer = window.dataLayer || [];
43                function gtag(){dataLayer.push(arguments);}
44                gtag('js', new Date());
45                gtag('config', '${o}', {
46                page_path: window.location.pathname,
47                });
48              `}})]}):(0,s.jsx)(s.Fragment,{})})},97940:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(2100);r(49689);let a=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(s.Fragment,{})})}},e=>{e.O(0,[8735,4339,5351,2161,9134,6272,9544,5907,5108,433,482,2440,46,9168,7358],()=>e(e.s=41802)),_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.