1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,123374,(e,t,r)=>{!function(n,i){if("function"==typeof define&&define.amd){let n;void 0!==(n=i(e.r,r,t))&&e.v(n)}else t.exports=i()}(e.e,function(){var e,t,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,r){return e<t?t:e>r?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(i[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();n.status=1===(e=o(e,i.minimum,1))?null:e;var r=n.render(!t),c=r.querySelector(i.barSelector),l=i.speed,u=i.easing;return r.offsetWidth,a(function(t){var o,a,d,p;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),s(c,(o=e,a=l,d=u,(p="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+a+"ms "+d,p)),1===e?(s(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){s(r,{transition:"all "+l+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},l)},l)):setTimeout(t,l)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var r,o=t.querySelector(i.barSelector),a=e?"-100":(-1+(n.status||0))*100,c=document.querySelector(i.parent);return s(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!i.showSpinner&&(r=t.querySelector(i.spinnerSelector))&&p(r),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),s=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,i){var o;n=t[o=(o=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[o]=function(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+o)in r)return n;return t}(o)),r.style[n]=i}return function(e,t){var n,i,o=arguments;if(2==o.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function l(e,t){var r=d(e),n=r+t;c(r,t)||(e.className=n.substring(1))}function u(e,t){var r,n=d(e);c(e,t)&&(e.className=(r=n.replace(" "+t+" "," ")).substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})},824627,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)};function r(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>n,"__extends",()=>r,"__rest",()=>i,"__spreadArray",()=>o])},818082,e=>{"use strict";function t(e){return e}e.s(["defineRouting",()=>t],818082)},817405,e=>{"use strict";let t=["en","zh","ja","ko","es","ar","zh-Hant"],r={en:{flag:"ðºð¸",name:"English",countryCode:"us"},zh:{flag:"ð¨ð³",name:"䏿",countryCode:"cn"},ja:{flag:"ð¯ðµ",name:"æ¥æ¬èª",countryCode:"jp"},ko:{flag:"ð°ð·",name:"íêµì´",countryCode:"kr"},es:{flag:"ðªð¸",name:"Español",countryCode:"es"},ar:{flag:"ð¸ð¦",name:"Ø§ÙØ¹Ø±Ø¨ÙØ©",countryCode:"sa"},"zh-Hant":{flag:"ð¹ð¼",name:"ç¹é«ä¸æ",countryCode:"tw"}},n=t.map(e=>[e,r[e]]);e.s(["DEFAULT_LOCALE",0,"en","LOCALES",0,t,"LOCALE_CONFIG",0,r,"LOCALE_ENTRIES",0,n])},243108,e=>{"use strict";var t=e.i(818082),r=e.i(817405);let n=(0,t.defineRouting)({locales:r.LOCALES,defaultLocale:r.DEFAULT_LOCALE,localeDetection:!1,localeCookie:{name:"NEXT_LOCALE"},localePrefix:"as-needed"});e.s(["routing",0,n])},807889,(e,t,r)=>{t.exports=e.r(798492)},969897,806148,e=>{"use strict";var t=e.i(622989);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,i=e.map(e=>{let i=r(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():r(e[t],null)}}}}function i(...e){return t.useCallback(n(...e),e)}e.s(["composeRefs",()=>n,"useComposedRefs",()=>i],806148);var o=e.i(119584);function a(e){var r;let i,a=(r=e,(i=t.forwardRef((e,r)=>{let{children:i,...o}=e;if(t.isValidElement(i)){var a;let e,s,c=(a=i,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,i.props);return i.type!==t.Fragment&&(l.ref=r?n(r,c):c),t.cloneElement(i,l)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,i),s=t.forwardRef((e,r)=>{let{children:n,...i}=e,s=t.Children.toArray(n),c=s.find(u);if(c){let e=c.props.children,n=s.map(r=>r!==c?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,o.jsx)(a,{...i,ref:r,children:n})});return s.displayName=`${e}.Slot`,s}var s=a("Slot"),c=Symbol("radix.slottable");function l(e){let t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=c,t}function u(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}e.s(["Slot",()=>s,"createSlot",()=>a,"createSlottable",()=>l],969897)},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>i=>{var o;if((null==t?void 0:t.variants)==null)return n(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:a,defaultVariants:s}=t,c=Object.keys(a).map(e=>{let t=null==i?void 0:i[e],n=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(n);return a[e][o]}),l=i&&Object.entries(i).reduce((e,t)=>
1{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,c,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...l}[t]):({...s,...l})[t]===r})?[...e,r,n]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},975157,e=>{"use strict";var t=e.i(7284),r=e.i(249398);function n(...e){return(0,r.twMerge)((0,t.clsx)(e))}async function i(e){try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0;let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.appendChild(t),t.focus(),t.select();let r=document.execCommand("copy");return t.remove(),r}catch(e){return console.error("Failed to copy text: ",e),!1}}e.s(["cn",()=>n,"copyToClipboard",()=>i])},360229,930296,e=>{"use strict";var t=e.i(622989);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:s="",children:c,iconNode:l,...u},d)=>(0,t.createElement)("svg",{ref:d,...n,width:i,height:i,stroke:e,strokeWidth:a?24*Number(o)/Number(i):o,className:r("lucide",s),...u},[...l.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(c)?c:[c]]));e.s(["default",()=>i],930296);let o=(e,n)=>{let o=(0,t.forwardRef)(({className:o,...a},s)=>(0,t.createElement)(i,{ref:s,iconNode:n,className:r(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,o),...a}));return o.displayName=`${e}`,o};e.s(["default",()=>o],360229)},519455,e=>{"use strict";var t=e.i(119584),r=e.i(969897),n=e.i(294237),i=e.i(975157);let o=(0,n.cva)("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",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",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},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 a({className:e,variant:n,size:a,asChild:s=!1,...c}){let l=s?r.Slot:"button";return(0,t.jsx)(l,{"data-slot":"button",className:(0,i.cn)(o({variant:n,size:a,className:e})),...c})}e.s(["Button",()=>a,"buttonVariants",()=>o])},561980,e=>{"use strict";var t=e.i(884420);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let n=r(0,t.useTranslations);r(0,t.useFormatter),e.s(["useTranslations",()=>n])},996366,e=>{"use strict";var t=e.i(622989);let r=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(n,i,o);return o},n=e=>{let n=e?r(e):r,i=e=>(function(e,r=e=>e){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n})(n,e);return Object.assign(i,n),i},i=e=>e?n(e):n;e.s(["create",()=>i],996366)},945228,177227,e=>{"use strict";e.i(442349);var t,r,n=((t={}).MONTH="month",t.YEAR="year",t),i=((r={}).SUBSCRIPTION="subscription",r.ONE_TIME="one_time",r);e.s(["PaymentTypes",()=>i,"PlanIntervals",()=>n],177227);let o={ui:{},metadata:{images:{ogImage:"/og.png",logoLight:"/logo.png",logoDark:"/logo-dark.png"},social:{github:"",twitter:"https://x.com/huang39184",blueSky:"",discord:"https://discord.gg/zZFUeA8ZQF",mastodon:"",linkedin:"",youtube:""}},features:{enableUpgradeCard:!0,enableUpdateAvatar:!0,enableAffonsoAffiliate:!1,enablePromotekitAff
1iliate:!1,enableDatafastRevenueTrack:!1,enableCrispChat:!1,enableTurnstileCaptcha:!1},routes:{defaultLoginRedirect:"/app/generate"},analytics:{enableVercelAnalytics:!1,enableSpeedInsights:!1},auth:{enableGoogleLogin:!0,enableGithubLogin:!0,enableCredentialLogin:!0},i18n:{defaultLocale:"en",locales:{en:{flag:"ðºð¸",name:"English",countryCode:"us"},zh:{flag:"ð¨ð³",name:"䏿",countryCode:"cn"},ja:{flag:"ð¯ðµ",name:"æ¥æ¬èª",countryCode:"jp"},ko:{flag:"ð°ð·",name:"íêµì´",countryCode:"kr"},es:{flag:"ðªð¸",name:"Español",countryCode:"es"},ar:{flag:"ð¸ð¦",name:"Ø§ÙØ¹Ø±Ø¨ÙØ©",countryCode:"sa"},"zh-Hant":{flag:"ð¹ð¼",name:"ç¹é«ä¸æ",countryCode:"tw"}}},blog:{enable:!0,paginationSize:6,relatedPostsSize:3},mail:{provider:"resend",fromEmail:"[email protected]",supportEmail:"[email protected]"},newsletter:{enable:!1,provider:"resend",autoSubscribeAfterSignUp:!0},storage:{enable:!0,provider:"s3"},payment:{provider:"stripe"},price:{showSubscriptionPlansInPricing:!1,plans:{starter:{id:"starter",name:"Starter",prices:[{type:i.SUBSCRIPTION,priceId:"price_1SzzQXENL87VYvV8GdNJ3dvP",amount:2e3,currency:"USD",interval:n.MONTH,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzQXENL87VYvV8TjngwHSe",amount:19200,currency:"USD",interval:n.YEAR,allowPromotionCode:!0}],isFree:!1,isLifetime:!1,popular:!1,credits:{enable:!0,amount:900,expireDays:30}},pro:{id:"pro",name:"Pro",prices:[{type:i.SUBSCRIPTION,priceId:"price_1SzzVxENL87VYvV8i3AvMubV",amount:2990,currency:"USD",interval:n.MONTH,tierIndex:0,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVxENL87VYvV8z6wDnm7q",amount:5990,currency:"USD",interval:n.MONTH,tierIndex:1,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVxENL87VYvV8JWUYRChk",amount:9990,currency:"USD",interval:n.MONTH,tierIndex:2,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVxENL87VYvV8dMQ9qubE",amount:12990,currency:"USD",interval:n.MONTH,tierIndex:3,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVxENL87VYvV8JLMXAYj3",amount:16990,currency:"USD",interval:n.MONTH,tierIndex:4,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVxENL87VYvV824zVPmg8",amount:19900,currency:"USD",interval:n.MONTH,tierIndex:5,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVxENL87VYvV8bGEYYSyK",amount:17950,currency:"USD",interval:n.YEAR,tierIndex:0,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVxENL87VYvV8HpWHQh9N",amount:35950,currency:"USD",interval:n.YEAR,tierIndex:1,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVyENL87VYvV8MvYXJVXJ",amount:59950,currency:"USD",interval:n.YEAR,tierIndex:2,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1SzzVyENL87VYvV8AIBtEeRP",amount:77950,currency:"USD",interval:n.YEAR,tierIndex:3,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1T2tVPENL87VYvV8VnGqu9qD",amount:101940,currency:"USD",interval:n.YEAR,tierIndex:4,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1T2tVbENL87VYvV8w3eXdN8h",amount:119400,currency:"USD",interval:n.YEAR,tierIndex:5,allowPromotionCode:!0}],isFree:!1,isLifetime:!1,popular:!0,credits:{enable:!0,amount:1400,expireDays:30}},scale:{id:"scale",name:"Scale",prices:[{type:i.SUBSCRIPTION,priceId:"price_1SzzZgENL87VYvV8nDThtKEz",amount:29900,currency:"USD",interval:n.MONTH,allowPromotionCode:!0},{type:i.SUBSCRIPTION,priceId:"price_1T2tU3ENL87VYvV8VSOtGjVA",amount:179400,currency:"USD",interval:n.YEAR,allowPromotionCode:!0}],isFree:!1,isLifetime:!1,popular:!1,credits:{enable:!0,amount:17900,expireDays:30}}}},credits:{enableCredits:!0,enablePackagesForFreePlan:!0,chat:{dailyFreeQuota:10,inputCreditsPerMillion:2,outputCreditsPerMillion:20,minCreditsPerMessage:1},registerGiftCredits:{enable:!0,amount:40,expireDays:365},antiFreeloadInitialCredits:{highValueCountry:40,nonHighValueCountry:40},antiFreeloadSuspiciousCredits:5,packages:{topup_s:{id:"topup_s",name:"Basic Pack",popular:!1,amount:900,expireDays:0,price:{priceId:"price_1SzC9WENL87VYvV8gA6L0jAM",amount:1999,currency:"USD",allowPromotionCode:!0}},topup_m:{id:"topup_m",name:"Standard Pack",popular:!0,amount:2400,expireDays:0,price:{priceId:"price_1SyBDKENL87VYvV82uA5DnYi",amount:4999,currency:"USD",allowPromotionCode:!0}},topup_l:{id:"topup_l",name:"Premium Pack",popular:!1,amount:16200,bonusCredits:2700,expireDays:0,price:{priceId:"price_1SzzauENL87VYvV8iZyZpcwT",amount:29900,currency:"USD",allowPromotionCode:!0}}}}};e.s(["websiteConfig",0,o],945228)},882985,e=>{"use strict";var t=e.i(243108);function r(){return window.location.origin}function n(e){return!!e&&e!==t.routing.defaultLocale&&"default"!==e}function i(e,t){return`${r()}${n(t)?`/${t}${e}
1`:e}`}function o(e){return`https://dashboard.stripe.com/customers/${e}`}e.s(["getBaseUrl",()=>r,"getStripeDashboardCustomerUrl",()=>o,"getUrlWithLocale",()=>i,"shouldAppendLocale",()=>n])},561493,e=>{"use strict";var t=e.i(578938);function r(){let{data:e,error:r,isPending:n}=t.authClient.useSession(),i=e?.user??null;return{session:e??null,user:i,isPending:!!n,isAuthenticated:!!i,error:r}}e.s(["useAuthState",()=>r])},121773,e=>{"use strict";var t,r=((t={}).LpView="lp_view",t.PricingView="pricing_view",t.LandingCtaClick="landing_cta_click",t.PricingCheckoutClick="pricing_checkout_click",t.CreditCheckoutStart="credit_checkout_start",t.CheckoutRedirect="checkout_redirect",t.CheckoutError="checkout_error",t.CheckoutStatus="checkout_status",t.PaymentIncomplete="payment_incomplete",t.PaymentFeedbackSubmitted="payment_feedback_submitted",t.PostSuccessSurveyEntryShown="post_success_survey_entry_shown",t.PostSuccessSurveyEntryCollapsed="post_success_survey_entry_collapsed",t.PostSuccessSurveyEntryExpanded="post_success_survey_entry_expanded",t.PostSuccessSurveyOpened="post_success_survey_opened",t.PostSuccessSurveySubmitted="post_success_survey_submitted",t.PostSuccessSurveyRewardGranted="post_success_survey_reward_granted",t.InAppMessageShown="in_app_message_shown",t.InAppMessageClicked="in_app_message_clicked",t.InAppMessageDismissed="in_app_message_dismissed",t.InAppMessageConverted="in_app_message_converted",t.GenerationStart="generation_start",t.GenerationSuccess="generation_success",t.GenerationFail="generation_fail",t.SceneGenerateSubmit="scene_generate_submit",t.SceneGenerateSuccess="scene_generate_success",t.SceneGenerateFail="scene_generate_fail",t.SceneGenerateBlocked="scene_generate_blocked",t.MusicView="music_view",t.MusicGenerateSubmit="music_generate_submit",t.MusicGenerateSuccess="music_generate_success",t.MusicGenerateFail="music_generate_fail",t.MusicGenerateBlocked="music_generate_blocked",t.MusicExtendSubmit="music_extend_submit",t.MusicExtendSuccess="music_extend_success",t.MusicExtendFail="music_extend_fail",t.MusicExtendBlocked="music_extend_blocked",t.MusicPlayerPlay="music_player_play",t.MusicPlayerPause="music_player_pause",t.MusicPlayerAction="music_player_action",t.MusicPlayerExpand="music_player_expand",t.ClientError="client_error",t.StaticAssetError="static_asset_error",t.WebVital="web_vital",t.PlaygroundPromptSubmit="playground_prompt_submit",t.PlaygroundResult="playground_result",t.WorksSearch="works_search",t.AuthSignupSuccess="auth_signup_success",t);let n="nbp_utm_cache",i="nbp_analytics_user_context",o=new Set(["email","prompt","rawprompt","apikey","token","accesstoken","authtoken","secret","password"]),a={},s=!1,c=()=>{if(!s){s=!0;try{let e=sessionStorage.getItem(i);if(e){let t=JSON.parse(e);a={userId:"string"==typeof t.userId?t.userId:void 0}}}catch{}}};function l(e){c(),a={...a,...e},(()=>{try{if(!Object.values(a).some(e=>null!=e))return void sessionStorage.removeItem(i);sessionStorage.setItem(i,JSON.stringify(a))}catch{}})()}let u=()=>{c();let e=document.documentElement.lang||(navigator.language?navigator.language.split("-")[0]:void 0),t=navigator.language?.split("-")[1]||void 0,r=window.innerWidth<=768||navigator.userAgentData?.mobile?"mobile":"desktop",i=window.location.host.toLowerCase(),o=i.replace(/^www\./,"");return{siteHost:i,siteKey:o,locale:e,country:t,device:r,referrer:document.referrer||void 0,page:window.location.pathname,...(()=>{try{let e=sessionStorage.getItem(n);if(e)return JSON.parse(e);let t=new URLSearchParams(window.location.search),r={};return["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach(e=>{let n=t.get(e);n&&(r[e]=n)}),sessionStorage.setItem(n,JSON.stringify(r)),r}catch{return{}}})(),...a}},d=(e,t)=>{let r=e[t];return"string"==typeof r&&r.length>0?r:void 0};function p(e,t){let r,n={...u(),...t||{}},i={utm_source:d(n,"utm_source"),utm_medium:d(n,"utm_medium"),utm_campaign:d(n,"utm_campaign"),utm_term:d(n,"utm_term"),utm_content:d(n,"utm_content")};fetch("/api/analytics/payment-attribution",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:e,planId:d(n,"planId"),priceId:d(n,"priceId"),packageId:d(n,"packageId"),credits:"number"==typeof(r=n.credits)&&Number.isFinite(r)?r:void 0,sessionId:d(n,"sessionId"),visitorId:d(n,"visitorId")||(e=>{if("u"<typeof document)return;let t=document.cookie.match(RegExp(`(?:^|; )${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}=([^;]*)`));return t?decodeURIComponent(t[1]):void 0})("datafast_visitor_id"),locale:d(n,"locale"),country:d(n,"country"),device:d(n,"device"),referrer:d(n,"referrer")||document.referrer||void 0,landingPage:d(n,"landingPage")||window.location.href,utm:i}),keepalive:!0})}async function m(e,t){try{await fetch("/api/analytics/feishu",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:e,payload:t}),keepalive:!0})}catch(e){}}function f(e,t){let r=Object.fromEntries(Object.entries({...u(),...t||{}}).filter(([e])=>{let t=e.toLowerCase().replace(/[^a-z0-9]/g,"");return!o.has(t)})),n=window.umami?.track;if("function"==typeof n)try{r?n(e,r):n(e)}catch(e){}m(e,r)}e.s(["UmamiEvent",()=>r,"mirrorPaymentAttribution",()=>p,"setAnalyticsUserContext",()=>l,"trackEvent",()=>f])}]);
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.