1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1139],{2375:(e,r,t)=>{t.d(r,{I:()=>n});var a=t(85463),i=t(98596);function n(){let e=(0,i.i)(),[r,t]=(0,a.useState)(null),[n,o]=(0,a.useState)(!1),[s,d]=(0,a.useState)(null),l=async()=>{if(!(null==e?void 0:e.id))return void t(null);o(!0),d(null);try{let e=await fetch("/api/points/balance");if(!e.ok)throw Error("Failed to fetch balance: ".concat(e.statusText));let r=await e.json();t(r)}catch(e){d(e instanceof Error?e:Error("Unknown error")),t(null)}finally{o(!1)}};return(0,a.useEffect)(()=>{l()},[null==e?void 0:e.id]),{balance:r,loading:n,error:s,refetch:l}}},11178:(e,r,t)=>{t.d(r,{Cf:()=>u,L3:()=>g,LC:()=>c,ZJ:()=>l,c7:()=>p,lG:()=>s,zM:()=>d});var a=t(36895);t(85463);var i=t(24941),n=t(1094),o=t(69149);function s(e){let{...r}=e;return(0,a.jsx)(i.bL,{"data-slot":"dialog",...r})}function d(e){let{...r}=e;return(0,a.jsx)(i.l9,{"data-slot":"dialog-trigger",...r})}function l(e){let{...r}=e;return(0,a.jsx)(i.ZL,{"data-slot":"dialog-portal",...r})}function c(e){let{className:r,...t}=e;return(0,a.jsx)(i.hJ,{"data-slot":"dialog-overlay",className:(0,o.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-black/50",r),...t})}function u(e){let{className:r,children:t,...s}=e;return(0,a.jsxs)(l,{"data-slot":"dialog-portal",children:[(0,a.jsx)(c,{}),(0,a.jsxs)(i.UC,{"data-slot":"dialog-content",className:(0,o.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 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",r),...s,children:[t,(0,a.jsxs)(i.bm,{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,a.jsx)(n.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function p(e){let{className:r,...t}=e;return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,o.cn)("flex flex-col gap-2 text-center sm:text-left",r),...t})}function g(e){let{className:r,...t}=e;return(0,a.jsx)(i.hE,{"data-slot":"dialog-title",className:(0,o.cn)("text-lg leading-none font-semibold",r),...t})}},28309:(e,r,t)=>{t.d(r,{D1:()=>a});let a="qwen/qwen-image-2"},32298:(e,r,t)=>{t.d(r,{kt:()=>n});var a=t(36895),i=t(69149);function n(e){let{className:r,size:t="md"}=e;return(0,a.jsxs)("div",{className:(0,i.cn)("relative",{sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12"}[t],r),children:[(0,a.jsx)("div",{className:"absolute inset-0 rounded-full border-2 border-muted dark:border-border/20"}),(0,a.jsx)("div",{className:"absolute inset-0 rounded-full border-2 border-t-primary border-r-transparent border-b-transparent border-l-transparent animate-spin dark:border-t-primary dark:shadow-[0_0_10px_rgba(139,_92,_246,_0.3)]"})]})}},41693:(e,r,t)=>{t.d(r,{DT:()=>s,Xn:()=>n,YZ:()=>o});var a=t(79874),i=t(94705);let n=a.u.i18n.defaultLocale,o=Object.keys(a.u.i18n.locales),s=(0,i.A)({locales:o,defaultLocale:n,localeDetection:!1,localeCookie:{name:"NEXT_LOCALE"},localePrefix:"as-needed"})},54592:(e,r,t)=>{t.d(r,{T:()=>n});var a=t(36895);t(85463);var i=t(69149);function n(e){let{className:r,...t}=e;return(0,a.jsx)("textarea",{"data-slot":"textarea",className:(0,i.cn)("border-input placeholder:text-muted-foreground dark:bg-background/40 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-primary/50 focus-visible:ring-primary/20 focus-visible:ring-[3px] dark:focus-visible:border-primary/70 dark:focus-visible:shadow-[0_0_0_3px_oklch(0.65_0.18_280_/_0.2)
1]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","dark:border-border/50 dark:backdrop-blur-sm dark:hover:border-border/70",r),...t})}},56846:(e,r,t)=>{t.d(r,{$:()=>d,r:()=>s});var a=t(36895);t(85463);var i=t(16972),n=t(82975),o=t(69149);let s=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 dark:bg-gradient-to-r dark:from-primary dark:to-primary/80 dark:hover:to-primary dark:shadow-[var(--primary-glow)] dark:hover:shadow-[var(--primary-glow-hover)] dark:hover:-translate-y-0.5",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 dark:hover:bg-destructive/70",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-background/20 dark:border-border/50 dark:hover:bg-background/30 dark:hover:border-primary/50 dark:backdrop-blur-sm",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80 dark:bg-secondary/30 dark:hover:bg-secondary/40 dark:backdrop-blur-sm",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/30 dark:hover:text-foreground",link:"text-primary underline-offset-4 hover:underline dark:text-primary dark:hover:text-primary/80"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function d(e){let{className:r,variant:t,size:n,asChild:d=!1,...l}=e,c=d?i.DX:"button";return(0,a.jsx)(c,{"data-slot":"button",className:(0,o.cn)(s({variant:t,size:n,className:r})),...l})}},69149:(e,r,t)=>{t.d(r,{cn:()=>n});var a=t(9719),i=t(82847);function n(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,i.QP)((0,a.$)(r))}},79874:(e,r,t)=>{t.d(r,{u:()=>i});var a=t(98288);let i={metadata:{theme:{defaultTheme:"default",enableSwitch:!0},mode:{defaultMode:"system",enableSwitch:!0},images:{ogImage:"/og.jpg",logoLight:"/logo.png",logoDark:"/logo-dark.png"},social:{github:"https://github.com/qwenimage",twitter:"https://twitter.com/qwenimage",blueSky:"",discord:"",mastodon:"",linkedin:"",youtube:""}},features:{enableDiscordWidget:!1,enableUpgradeCard:!0,enableAffonsoAffiliate:!1,enablePromotekitAff
1iliate:!1,enableDatafastRevenueTrack:!1,enableTurnstileCaptcha:!0},routes:{defaultLoginRedirect:"/settings/profile"},analytics:{enableVercelAnalytics:!1,enableSpeedInsights:!1},auth:{enableGoogleLogin:!0,enableGithubLogin:!1},i18n:{defaultLocale:"en",locales:{en:{flag:"\uD83C\uDDFA\uD83C\uDDF8",name:"English"},zh:{flag:"\uD83C\uDDE8\uD83C\uDDF3",name:"䏿"}}},blog:{paginationSize:6,relatedPostsSize:3},mail:{provider:"resend",fromEmail:"Qwen Image <[email protected]>",supportEmail:"Qwen Image <[email protected]>"},newsletter:{provider:"resend",autoSubscribeAfterSignUp:!0},storage:{provider:"s3"},payment:{provider:"stripe"},price:{plans:{free:{id:"free",prices:[],isFree:!0,isLifetime:!1},starter:{id:"starter",prices:[{type:a.Y.SUBSCRIPTION,priceId:"price_1SzqYE7IryQ24JlYDZcZfYd2",amount:990,currency:"USD",interval:a.c.MONTH},{type:a.Y.SUBSCRIPTION,priceId:"price_1SzqYC7IryQ24JlYCDIaeAig",amount:9480,currency:"USD",interval:a.c.YEAR}],isFree:!1,isLifetime:!1},standard:{id:"standard",prices:[{type:a.Y.SUBSCRIPTION,priceId:"price_1SzqYE7IryQ24JlY5Awb7m3y",amount:1990,currency:"USD",interval:a.c.MONTH},{type:a.Y.SUBSCRIPTION,priceId:"price_1SzqYC7IryQ24JlYhODwxXz3",amount:16680,currency:"USD",interval:a.c.YEAR}],isFree:!1,isLifetime:!1,recommended:!0},professional:{id:"professional",prices:[{type:a.Y.SUBSCRIPTION,priceId:"price_1SzqYE7IryQ24JlYIWcLPemE",amount:5990,currency:"USD",interval:a.c.MONTH},{type:a.Y.SUBSCRIPTION,priceId:"price_1SzqYC7IryQ24JlYF1neVuXU",amount:43080,currency:"USD",interval:a.c.YEAR}],isFree:!1,isLifetime:!1},credits_small:{id:"credits_small",prices:[{type:a.Y.ONE_TIME,priceId:"price_1SzqY97IryQ24JlYS74sGrm3",amount:1690,currency:"USD"}],isFree:!1,isLifetime:!1},credits_medium:{id:"credits_medium",prices:[{type:a.Y.ONE_TIME,priceId:"price_1SzqY97IryQ24JlYgiZL0dDQ",amount:4990,currency:"USD"}],isFree:!1,isLifetime:!1,recommended:!0},credits_large:{id:"credits_large",prices:[{type:a.Y.ONE_TIME,priceId:"price_1SzqY97IryQ24JlYDHrcMhhj",amount:9990,currency:"USD"}],isFree:!1,isLifetime:!1}}}}},89591:(e,r,t)=>{t.d(r,{XO:()=>n,iN:()=>d,tx:()=>l});var a=t(629),i=t(41693);let{Link:n,getPathname:o,redirect:s,usePathname:d,useRouter:l}=(0,a.A)(i.DT)},98288:(e,r,t)=>{t.d(r,{Y:()=>i,c:()=>a});var a=function(e){return e.MONTH="month",e.YEAR="year",e}({}),i=function(e){return e.SUBSCRIPTION="subscription",e.ONE_TIME="one_time",e}({})},98596:(e,r,t)=>{t.d(r,{i:()=>i});var a=t(31554);let i=()=>{let{data:e,error:r}=a.y.useSession();return r?(console.error("useCurrentUser, error:",r),null):null==e?void 0:e.user}}}]);
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.