PageSourceSearch

https://photohero.ai/_next/static/chunks/0bpsv0iwkzygr.js

js photohero.ai collected 2026-10-05 12:24:11 UTC 62,001 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,478982,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(618566),n=e.i(522016),s=e.i(882715);let i={free:3,starter:5,pro:10,elite:20,legend:null},l=[{text:'"PhotoHero really has the best quality results. I\'ve tried them all."',author:"Jake S."},{text:'"It\'s really easy to use. And support is very helpful!"',author:"Emily H."},{text:'"Privacy is important to me, and I have peace of mind knowing that PhotoHero has robust security and is US based."',author:"Matt F."}];var o=e.i(46251),c=e.i(530925);function d({offer:e,notice:r}){if(e){let r,a,n;return(0,t.jsxs)("div",{role:"status","data-e2e":"card-recovery-banner",className:"mb-8 rounded-2xl px-5 py-4 text-center",style:{background:"rgba(61,220,151,0.12)",border:"1px solid rgba(61,220,151,0.45)"},children:[(0,t.jsxs)("p",{className:"font-bold text-white",children:["Your ",e.bonusPercent,"% bonus credits are active"]}),(0,t.jsxs)("p",{className:"mt-1 text-sm text-emerald-100",children:["Complete your next credit card purchase — a credit pack or new subscription — by"," ",(0,t.jsx)("strong",{children:(a=(r=new Date(e.expiresAt)).getUTCHours(),n=String(r.getUTCMinutes()).padStart(2,"0"),`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getUTCMonth()]} ${r.getUTCDate()}, ${r.getUTCFullYear()} at ${a%12||12}:${n} ${a>=12?"PM":"AM"} UTC`)}),". The extra credits are added automatically and never expire."]})]})}let a="expired"===r?"This recovery offer has expired.":"redeemed"===r?"This recovery bonus has already been used.":"active"===r?"We couldn’t load this recovery offer. Reopen the link in your email and try again.":"unavailable"===r?"We couldn’t activate this offer. If you’re signed in, sign out, then reopen the email link and use the account that received it.":null;return a?(0,t.jsx)("p",{role:"alert","data-e2e":"card-recovery-notice",className:"mb-8 rounded-xl border border-amber-700 bg-amber-950 px-5 py-3 text-center text-sm text-amber-100",children:a}):null}let u=(0,c.subscriptionSalesEnabled)()?["https://whop.com","https://sandbox.whop.com","https://js.whop.com"]:[],h={1100:"Most popular",4e4:"Best price per credit"};function m(){return(0,t.jsx)("svg",{className:"w-4 h-4 mt-0.5 flex-shrink-0",style:{color:"#0096E6"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}let p=s.CREDIT_TIERS.filter(e=>!e.adminOnly);function x(e){if("year"!==e.interval)return null;let t=Math.round(12*e.monthlyListPrice-e.price);return`Save ${(0,s.formatUsd)(t)} vs monthly billing (${(0,s.formatUsd)(12*e.monthlyListPrice)}/year)`}function f(e){return e?new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"}):"your renewal date"}function y({plan:e,sub:r,status:a,isLoggedIn:n,onSubscribe:l,cardPaymentsEnabled:o}){let c,d=100*e.price/e.credits,u=r?.active?.planKey===e.key,h=r?.scheduled?.planKey===e.key,p=!!r?.active?.cancelAtPeriodEnd,g=!u&&r?.active?r.changes[e.key]:void 0,b=!!r?.scheduled&&r?.active?.provider==="whop",v="ready"!==a||u||h||p||b&&!!r?.active,k=o&&n&&"ready"===a&&!r?.active,j=o&&(r?.active?.provider==="paypal"||r?.active?.provider==="zoho"),w="ready"!==a?"loading"===a?"Checking plan…":"Plan unavailable":u?"Your current plan":p?"Resume plan to change":h?`Starts ${f(r?.scheduled?.startsAt)}`:j?`Switch on ${f(r?.active?.renewsAt)}`:g?.kind==="upgrade"?`Upgrade now — ${(0,s.formatUsd)(g.chargeToday??e.price)} today`:g?.kind==="scheduled"?`Switch on ${f(g.startsAt)}`:"Subscribe";return(0,t.jsxs)("div",{className:"relative rounded-2xl p-5 min-h-[340px] flex flex-col text-white",style:{background:"#141B2D",border:"1px solid #243050"},children:[e.badge&&!u&&(0,t.jsx)("span",{className:"absolute -top-2 right-4 text-[10px] font-semibold px-2 py-0.5 rounded-full",style:{background:"#0096E6",color:"white"},children:e.badge}),u&&(0,t.jsx)("span",{className:"absolute -top-2 right-4 text-[10px] font-semibold px-2 py-0.5 rounded-full",style:{border:"1px solid #0096E6",color:"#0096E6",background:"#141B2D"},children:"Current plan"}),(0,t.jsxs)("h2",{className:"text-sm font-bold text-slate-300 pr-24",children:[e.name," (","year"===e.interval?"Yearly":"Monthly",")"]}),(0,t.jsx)("div",{className:"mt-3 flex items-start gap-0.5",children:(()=>{let[r,a]=("month"===e.interval?e.price:e.monthlyEquivalent).toFixed(2).split(".");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"text-4xl font-black text-white leading-none",children:["$",r]}),(0,t.jsxs)("span",{className:"text-lg font-black text-white leading-none mt-0.5",children:[".",a]}),(0,t.jsx)("span",{className:"text-sm font-semibold text-slate-400 self-end ml-1",children:"/mo"})]})})()}),(0,t.jsx)("p",{className:"mt-3 text-xs leading-snug text-slate-400",children:"year"===e.interval?`${(0,s.formatUsd)(e.price)} billed yearly`:"Billed monthly"}),x(e)&&(0,t.jsx)("p",{className:"mt-2 text-xs leading-snug",style:{color:"#3ddc97"},children:x(e)}),k?(0,t.jsxs)("form",{action:"/api/billing/session",method:"post",className:"mt-5",children:[(0,t.jsx)("input",{type:"hidden",name:"plan",value:e.key}),(0,t.jsx)("button",{type:"submit",className:"h-10 w-full rounded-lg px-4 text-xs font-semibold text-white",style:{background:"linear-gradient(135deg, #0096E6 0%, #007DC7 100%)"},children:"Continue to secure checkout"})]}):(0,t.jsx)("button",{onClick:()=>l(e),disabled:v,className:`mt-5 h-10 rounded-lg px-4 text-xs font-semibold transition-all ${v?"text-slate-500 cursor-default":"text-white"}`,style:v?{background:"#243050"}:{background:"linear-gradient(135deg, #0096E6 0%, #007DC7 100%)"},children:w}),g?.kind==="upgrade"&&!j&&(0,t.jsx)("p",{className:"mt-2 text-[10px] leading-snug text-slate-500",children:"The price today is reduced by the unused part of your current plan. Your new billing cycle starts now."}),(g?.kind==="scheduled"||j)&&!u&&(0,t.jsx)("p",{className:"mt-2 text-[10px] leading-snug text-slate-500",children:"Your current plan keeps running until then — nothing is charged today."}),(0,t.jsxs)("div",{className:"mt-5 space-y-4 text-xs leading-snug text-slate-300",children:[e.includes&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:e.includes})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsxs)("span",{children:[e.name," credits: ",e.credits.toLocaleStr
1ing()," per ",e.interval," ","(",d<1?`${d.toFixed(2)} cents`:`${d.toFixed(1)} cents`,"/credit). Credits are available immediately and valid for 1 year."]})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:(0,s.preciseVideoLengthLabel)(e.credits)})]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:"Skip the queue — when our GPUs are busy, your generations run on reserved capacity instead of waiting"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:null===(c=i[e.name.toLowerCase()])?"Unlimited simultaneous generations":`Run ${c} generations at once`})]})]}),"Starter"===e.name&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:"2 credits = 1 AI image generation"})]}),!1,(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:"Unlimited free storage"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:"Privacy guaranteed"})]})]})]}),(0,t.jsx)("p",{className:"mt-auto pt-5 text-center text-[10px] text-slate-500",children:"*unused credits do not roll over"})]})}let g=(0,c.subscriptionSalesEnabled)();e.s(["default",0,function({isAdmin:e=!1,paymentProvider:i="Whop",cardPaymentsEnabled:c=!1,isLoggedIn:m=!1,paymentsEnabled:x=!0,cryptoCheckoutEnabled:b=!1,dailyGrant:v=null,recoveryOffer:k=null,recoveryNotice:j=null}){let w=(0,a.useRouter)(),N=g&&x,E=e?s.CREDIT_TIERS:p,[C,M]=(0,r.useState)("year"),[S,P]=(0,r.useState)(E.find(e=>1100===e.credits)??E[0]),[L,$]=(0,r.useState)(0),[A,T]=(0,r.useState)(0),_=(0,r.useRef)(null),[F,O]=(0,r.useState)("idle"),[I,D]=(0,r.useState)(null),[R,B]=(0,r.useState)("loading"),[z,U]=(0,r.useState)(""),H=(0,r.useCallback)(()=>{if(N){if(!m){D(null),B("ready");return}B("loading"),fetch("/api/whop/subscription").then(e=>{if(!e.ok)throw Error("Subscription status unavailable");return e.json()}).then(e=>{D(e&&(e.active||e.scheduled)?e:null),B("ready"),U("")}).catch(()=>{B("error"),U("We could not check your subscription. Retry before choosing a plan.")})}},[N,m]);(0,r.useEffect)(()=>{H()},[H]);let[W,q]=(0,r.useState)(!1),V=(0,r.useCallback)(e=>{let t=I?.active?.provider==="whop"?"&provider=whop":"";w.push(`/checkout?plan=${encodeURIComponent(e.key)}${t}`)},[w,I?.active?.provider]),[K,Y]=(0,r.useState)("");(0,r.useEffect)(()=>{O("idle"),Y("")},[S.credits]),(0,r.useEffect)(()=>{fetch("/api/referral").then(e=>e.ok?e.json():null).then(e=>{e&&"number"==typeof e.pendingPerkPct&&T(e.pendingPerkPct)}).catch(()=>{})},[]);let[G,J]=(0,r.useState)(null),[X,Q]=(0,r.useState)(null);(0,r.useEffect)(()=>{fetch("/api/loyalty").then(e=>e.ok?e.json():null).then(e=>{e&&e.enabled&&e.tier&&e.tier.bonusPct>0&&J({pct:e.tier.bonusPct,label:e.tier.label});let t=e?.enabled?e.nextTier:null,r=e?.tiers?.find(e=>e.id===t?.id)?.bonusPct??0;t&&t.toGo>0&&r>0&&Q({label:t.label,toGo:t.toGo,bonusPct:r})}).catch(()=>{})},[]);let[Z,ee]=(0,r.useState)(v?.nextClaimAt?"claimed":"idle"),[et,er]=(0,r.useState)(v?.nextClaimAt??null),[ea,en]=(0,r.useState)(""),[es,ei]=(0,r.useState)(!1),el=(0,r.useCallback)(async()=>{if(v&&"busy"!==Z){ee("busy"),en(""),ei(!1);try{let e=await fetch("/api/credits/daily-grant",{method:"POST"});if(404===e.status)return void w.refresh();let t=await e.json().catch(()=>null);if(!e.ok||!t||"boolean"!=typeof t.granted)throw Error("bad response");ee("claimed"),er("string"==typeof t.nextClaimAt?t.nextClaimAt:null),en(t.granted?`+${v.amount.toLocaleString()} credits added to your balance`:"Already claimed — the next claim unlocks 24 hours after the last one"),t.granted&&window.dispatchEvent(new Event("credits:refresh"))}catch{ee("idle"),ei(!0),en("Something went wrong — please try again.")}}},[v,Z,w]),eo=s.SUBSCRIPTION_TIERS.filter(t=>t.interval===C&&(e||!t.adminOnly));return(0,t.jsxs)("div",{"data-e2e":"pricing-content",className:"mx-auto max-w-6xl px-6 py-12",children:[u.map(e=>
1(0,t.jsx)("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"},e)),(0,t.jsx)("h1",{className:"text-3xl font-bold text-white text-center mb-2",children:N?"Choose your plan":"Buy credits"}),(0,t.jsx)("p",{className:"text-slate-400 text-center text-sm mb-6",children:x?N?c?"Subscription cards are processed through secure checkout. Credits arrive after payment, and you can cancel from your account.":"PayPal"===i?"Subscriptions are billed securely through PayPal and renew automatically. Credits are delivered immediately after each successful payment, and you can cancel any time from your account.":"Subscriptions run through secure Whop checkout. Credits are delivered immediately after each successful payment.":"Credits are delivered immediately after each successful payment.":"Payments are temporarily unavailable — we’re working on a fix. Your credits and any existing plan are safe."}),(0,t.jsx)(d,{offer:k,notice:j}),v&&(0,t.jsxs)("div",{"data-e2e":"daily-grant-card",className:"mb-8 max-w-xl mx-auto rounded-2xl px-6 py-5 text-center",style:{background:"rgba(0,150,230,0.10)",border:"1px solid rgba(0,150,230,0.45)"},children:[(0,t.jsx)("h2",{className:"text-lg font-bold text-white",children:"Need credits while payments are down?"}),(0,t.jsxs)("p",{className:"mt-1 text-sm text-slate-300",children:["Claim ",(0,t.jsxs)("strong",{className:"text-white",children:[v.amount.toLocaleString()," free credits"]})," — you can claim again 24 hours after each claim."]}),(0,t.jsx)("button",{"data-e2e":"daily-grant-claim",onClick:el,disabled:"idle"!==Z,className:`mt-4 h-11 rounded-lg px-6 text-sm font-semibold transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cyan-300 ${"claimed"===Z?"text-slate-400 cursor-default":"text-white"}`,style:"claimed"===Z?{background:"#243050"}:{background:"linear-gradient(135deg, #0096E6 0%, #007DC7 100%)"},children:"busy"===Z?"Claiming…":"claimed"===Z?"Claimed ✓":`Claim ${v.amount.toLocaleString()} credits`}),(0,t.jsx)("p",{"data-e2e":"daily-grant-countdown",className:"mt-3 text-xs text-slate-400",children:"claimed"===Z?et?`Next claim available in ${function(e){if(!e)return"now";let t=new Date(e).getTime()-Date.now();if(t<=0)return"now";let r=Math.floor(t/36e5),a=Math.max(1,Math.ceil(t%36e5/6e4));return r>0?`${r}h ${a}m`:`${a}m`}(et)}`:"Next claim available now":"One claim every 24 hours, per account."}),ea&&(0,t.jsx)("p",{role:"alert","data-e2e":"daily-grant-notice",className:`mt-2 text-sm ${es?"text-amber-300":""}`,style:es?void 0:{color:"#3ddc97"},children:ea})]}),A>0&&(0,t.jsxs)("div",{className:"mb-8 rounded-xl px-4 py-3 text-center text-sm",style:{background:"rgba(61,220,151,0.12)",border:"1px solid rgba(61,220,151,0.4)",color:"#3ddc97"},children:["Your ",(0,t.jsxs)("strong",{children:[A,"% referral bonus"]})," is active on your next purchase."]}),G&&(0,t.jsxs)("div",{className:"mb-8 rounded-xl px-4 py-3 text-center text-sm",style:{background:"rgba(0,150,230,0.12)",border:"1px solid rgba(0,150,230,0.4)",color:"#7Fd3ff"},children:["🏆 Your ",(0,t.jsx)("strong",{children:G.label})," status adds ",(0,t.jsxs)("strong",{children:["+",G.pct,"%"]})," extra credits to every purchase — applied automatically."]}),N&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-8 flex justify-center",children:(0,t.jsx)("div",{className:"inline-flex rounded-lg p-1",style:{background:"#141B2D",border:"1px solid #243050"},children:["year","month"].map(e=>(0,t.jsx)("button",{onClick:()=>M(e),className:`h-9 rounded-md px-4 text-sm font-semibold transition-all ${C===e?"text-white":"text-slate-400 hover:text-white"}`,style:C===e?{background:"#0096E6"}:void 0,children:"year"===e?"Yearly":"Monthly"},e))})}),I?.active&&(0,t.jsxs)("div",{className:"mb-8 rounded-xl px-4 py-3 text-center text-sm",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.2)",color:"#cbd5e1"},children:["You're on the ",(0,t.jsxs)("strong",{className:"text-white",children:[I.active.planName," (","year"===I.active.interval?"Yearly":"Monthly",")"]})," plan",I.scheduled?(0,t.jsxs)(t.Fragment,{children:[" — switching to ",(0,t.jsx)("strong",{className:"text-white",children:I.scheduled.planName})," on ",f(I.scheduled.startsAt),"."]}):I.active.cancelAtPeriodEnd?(0,t.jsxs)(t.Fragment,{children:[" — ends ",f(I.active.renewsAt),"."]}):(0,t.jsxs)(t.Fragment,{children:[" — renews ",f(I.active.renewsAt),"."]})]}),I?.active?.cancelAtPeriodEnd&&(0,t.jsxs)("p",{className:"mb-4 text-center text-sm text-amber-300",children:[(0,t.jsx)(n.default,{href:"/account",className:"underline",children:"Resume your subscription"})," before changing plans."]}),z&&(0,t.jsxs)("p",{className:"text-amber-300 text-sm text-center mb-4",role:"alert","data-e2e":"subscribe-notice",children:[z," ",(0,t.jsx)("button",{type:"button",onClick:H,className:"underline",children:"Retry"})]}),(0,t.jsx)("div",{className:`grid gap-4 md:grid-cols-2 xl:grid-cols-4 ${W?"opacity-60 pointer-events-none":""}`,children:eo.map(e=>(0,t.jsx)(y,{plan:e,sub:I,status:R,isLoggedIn:m,onSubscribe:V,cardPaymentsEnabled:c},e.key))})]}),(0,t.jsxs)("section",{className:N?"mt-16":"",children:[N&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-white text-center mb-2",children:"One-time credit packs"}),(0,t.jsx)("p",{className:"text-slate-400 text-center text-sm mb-6",children:"Need a top-up instead? Pay as you go with credits that never expire."})]}),(0,t.jsx)("div",{className:`grid sm:grid-cols-2 lg:grid-cols-3 gap-3 mb-6 ${!x?"opacity-60":""}`,children:E.map(e=>{let r=S.credits===e.credits,a=e.bonusPct?`+${e.bonusPct}% credits`:h[e.credits];return(0,t.jsxs)("button",{disabled:!x,onClick:()=>{P(e),setTimeout(()=>_.current?.scrollIntoView({behavior:"smooth",block:"start"}),0)},className:`relative text-left rounded-2xl p-5 transition-all ${!x?"cursor-not-allowed":""}`,style:{background:r?"#1E2740":"#141B2D",border:`1px solid ${r?"#0096E6":"#243050"}`},children:[a&&(0,t.jsx)("span",{className:"absolute -top-2 right-4 text-[10px] font-semibold px-2 py-0.5 rounded-full",style:{background:"#0096E6",color:"white"},children:a}),(0,t.jsxs)("div",{className:"flex items-baseline justify-between mb-1",children:[(0,t.jsxs)("span",{className:"text-white font-bold text-lg",children:[e.credits.toLocaleStr
1ing()," credits"]}),(0,t.jsxs)("span",{className:"text-white font-semibold",children:["$",e.price.toFixed(2)]})]}),(0,t.jsx)("p",{className:"text-slate-500 text-xs",children:e.desc}),e.bonusPct?(0,t.jsxs)("p",{className:"text-xs mt-1",style:{color:"#3ddc97"},children:["+",(0,s.packBonusCredits)(e.credits).toLocaleString()," bonus credits included"]}):null,(0,t.jsxs)("p",{className:"text-slate-400 text-xs mt-2",children:["Approx. ",e.credits.toLocaleString()," images - ",(0,s.videoLengthLabel)(e.credits)]})]},e.credits)})}),X&&(0,t.jsx)("p",{className:"text-center text-xs mb-6",style:{color:"#7Fd3ff"},children:S.credits>=X.toGo?(0,t.jsxs)(t.Fragment,{children:["🏆 This pack gets you to ",(0,t.jsx)("strong",{children:X.label})," — +",X.bonusPct,"% extra credits on every purchase from then on."]}):(0,t.jsxs)(t.Fragment,{children:["🏆 ",X.toGo.toLocaleString()," more credits to reach ",(0,t.jsx)("strong",{children:X.label})," — +",X.bonusPct,"% extra credits on every purchase from then on."]})}),(0,t.jsxs)("div",{ref:_,className:"max-w-sm mx-auto scroll-mt-20",children:[c&&x&&!b?(0,t.jsxs)("form",{method:"post",action:"/api/billing/session",children:[(0,t.jsx)("input",{type:"hidden",name:"credits",value:S.credits}),(0,t.jsxs)("button",{type:"submit",className:"w-full font-semibold py-3.5 rounded-lg mb-3 transition-all text-white",style:{background:"linear-gradient(135deg, #0096E6 0%, #007DC7 100%)"},children:["Get ",S.credits.toLocaleString()," credits - $",S.price.toFixed(2)]})]}):(0,t.jsx)("button",{onClick:()=>w.push(`/checkout?credits=${S.credits}`),disabled:!x,className:`w-full font-semibold py-3.5 rounded-lg mb-3 transition-all ${x?"text-white":"text-slate-500 cursor-not-allowed"}`,style:x?{background:"linear-gradient(135deg, #0096E6 0%, #007DC7 100%)"}:{background:"#243050"},children:x?`Get ${S.credits.toLocaleString()} credits - $${S.price.toFixed(2)}`:"Payments temporarily unavailable"}),!x&&(0,t.jsx)("p",{className:"text-center text-xs text-slate-500 mb-3",children:"We're working on a fix — please check back shortly."}),(0,t.jsx)(o.default,{className:"justify-center mb-6",provider:null,showCards:!1})]})]}),(0,t.jsxs)("div",{className:"mt-12 text-center",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-white mb-6",children:"What customers are saying"}),(0,t.jsx)("div",{className:"text-yellow-400 text-xl mb-4",children:"★★★★★"}),(0,t.jsxs)("div",{className:"relative max-w-lg mx-auto",children:[(0,t.jsx)("button",{onClick:()=>$(e=>(e-1+l.length)%l.length),className:"absolute left-0 top-1/2 -translate-y-1/2 text-slate-500 hover:text-white text-xl px-2",children:"‹"}),(0,t.jsx)("div",{className:"px-8 space-y-2",children:l.map((e,r)=>(0,t.jsxs)("p",{className:`text-sm transition-opacity ${r===L?"text-slate-300 opacity-100":"text-slate-500 opacity-50"}`,children:[e.text," ",(0,t.jsxs)("span",{className:"text-slate-500",children:["- ",e.author]})]},r))}),(0,t.jsx)("button",{onClick:()=>$(e=>(e+1)%l.length),className:"absolute right-0 top-1/2 -translate-y-1/2 text-slate-500 hover:text-white text-xl px-2",children:"›"})]}),(0,t.jsxs)("p",{className:"mt-8 text-sm text-slate-500",children:["Questions about billing? ",(0,t.jsx)(n.default,{href:"/account",className:"text-slate-300 hover:text-white",children:"Manage your account"})]})]})]})}],478982)},128202,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(522016),n=e.i(558249);e.s(["default",0,function({email:e,dropUp:s}){let[i,l]=(0,r.useState)(!1),[o,c]=(0,r.useState)(null),[d,u]=(0,r.useState)(!1),h=(0,r.useRef)(null),m=(e[0]??"?").toUpperCase();async function p(){if(!d){u(!0),(0,n.resetAnalytics)();try{await fetch("/api/auth/logout",{method:"POST"})}catch{}window.location.href="/login"}}return(0,r.useEffect)(()=>{if(i)return fetch("/api/me").then(e=>{if(!e.ok)throw Error();return e.json()}).then(e=>{"number"==typeof e.credits&&c(e.credits)}).catch(()=>{}),document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){h.current?.contains(e.target)||l(!1)}function t(e){"Escape"===e.key&&l(!1)}},[i]),(0,t.jsxs)("div",{ref:h,className:"relative",children:[(0,t.jsx)("button",{onClick:()=>l(e=>!e),"aria-label":"Account menu",className:"w-9 h-9 rounded-full flex items-center justify-center text-white font-semibold text-sm transition-transform hover:scale-105",style:{background:"linear-gradient(135deg, #7B2FFF 0%, #0096E6 100%)"},children:m}),i&&(0,t.jsxs)("div",{className:`absolute ${s?"left-0 bottom-full mb-2":"right-0 mt-2"}
1 w-64 rounded-xl overflow-hidden shadow-2xl z-50`,style:{background:"#141B2D",border:"1px solid #1A2540"},children:[(0,t.jsxs)("div",{className:"px-4 py-3 flex items-center gap-3 border-b border-[#1A2540]",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full flex items-center justify-center text-white font-semibold",style:{background:"linear-gradient(135deg, #7B2FFF 0%, #0096E6 100%)"},children:m}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-white text-sm font-medium truncate",children:e}),null!==o&&(0,t.jsxs)("p",{className:"text-slate-400 text-xs mt-0.5",children:[(0,t.jsx)("span",{className:"text-white font-medium",children:o.toLocaleString()})," credits"]})]})]}),(0,t.jsxs)("div",{className:"py-1",children:[(0,t.jsxs)(a.default,{href:"/account",onClick:()=>l(!1),className:"flex items-center gap-3 px-4 py-2.5 text-sm text-slate-300 hover:bg-[#1E2740] hover:text-white transition-colors",children:[(0,t.jsxs)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),"Account"]}),(0,t.jsxs)("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 px-4 py-2.5 text-sm text-slate-300 hover:bg-[#1E2740] hover:text-white transition-colors",children:[(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Contact Support"]})]}),(0,t.jsx)("div",{className:"border-t border-[#1A2540]",children:(0,t.jsxs)("button",{type:"button",onClick:p,disabled:d,className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-red-400 hover:bg-[#1E2740] hover:text-red-300 transition-colors disabled:opacity-60",children:[(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),d?"Logging out…":"Log Out"]})})]})]})}])},786563,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.s(["default",0,function(){let[e,a]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=()=>fetch("/api/me").then(e=>{if(!e.ok)throw Error();return e.json()}).then(e=>{"number"==typeof e.credits&&a(e.credits)}).catch(()=>{});return e(),window.addEventListener("credits:refresh",e),()=>window.removeEventListener("credits:refresh",e)},[]),null===e)?null:(0,t.jsxs)("span",{className:"text-sm font-medium px-3 py-1 rounded-full",style:{background:"rgba(0,150,230,0.15)",color:"#33AAEE",border:"1px solid rgba(0,150,230,0.25)"},children:[e," credits"]})}])},140552,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.s(["default",0,function({message:e}){let[a,n]=(0,r.useState)(!1);return a?null:(0,t.jsx)("div",{"data-testid":"maintenance-banner",className:"bg-amber-500/15 border-b border-amber-500/30 text-amber-200",children:(0,t.jsxs)("div",{className:"max-w-[1100px] mx-auto px-4 py-2.5 flex items-center gap-3 text-sm",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"🛠️"}),(0,t.jsx)("span",{className:"flex-1",children:e||"New jobs are paused for brief maintenance. You can still browse — please try submitting again in a few minutes."}),(0,t.jsx)("button",{onClick:()=>n(!0),className:"text-amber-200/60 hover:text-amber-100 text-xs shrink-0","aria-label":"Dismiss",children:"✕"})]})})}])},365617,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(522016),n=e.i(737659),s=e.i(558249);e.s(["default",0,function(){let[e,i]=(0,r.useState)(!1),l=(0,r.useRef)(null),{capability:o,promptInstall:c}=(0,n.useInstallPrompt)();async function d(){i(!1);let e=await c();"unavailable"!==e&&(0,s.track)("accepted"===e?"install_accepted":"install_dismissed")}return(0,r.useEffect)(()=>
1{if(e)return document.addEventListener("mousedown",t),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("keydown",r)};function t(e){l.current?.contains(e.target)||i(!1)}function r(e){"Escape"===e.key&&i(!1)}},[e]),(0,t.jsxs)("div",{ref:l,className:"sm:hidden",children:[(0,t.jsx)("button",{onClick:()=>i(e=>!e),"aria-label":"Navigation menu",className:"w-9 h-9 rounded-lg flex items-center justify-center text-white transition-colors hover:bg-white/15",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e?(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})}),e&&(0,t.jsxs)("div",{className:"absolute left-0 right-0 top-full mt-px shadow-2xl z-40 py-2",style:{background:"#141B2D",borderTop:"1px solid #1A2540"},children:[(0,t.jsxs)(a.default,{href:"/pricing",onClick:()=>i(!1),className:"flex items-center gap-3 mx-4 mb-1 px-4 py-2.5 rounded-lg text-sm text-[#0F1117] font-bold bg-[#FFD400] hover:bg-[#FFDD33]",children:[(0,t.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M13 2L4.09 12.97a1 1 0 00.78 1.63H11l-1 7.4 8.91-10.97a1 1 0 00-.78-1.63H13l1-7.4z"})}),"Buy Credits"]}),(0,t.jsx)("div",{className:"my-2 border-t border-[#1A2540]"}),(0,t.jsx)(a.default,{href:"/gallery",onClick:()=>i(!1),className:"block px-6 py-3 text-sm text-slate-300 hover:bg-[#1E2740] hover:text-white",children:"Gallery"}),"prompt"===o&&(0,t.jsxs)("button",{onClick:d,className:"w-full text-left flex items-center gap-2 px-6 py-3 text-sm text-slate-300 hover:bg-[#1E2740] hover:text-white",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"📲"})," Install app"]}),"ios"===o&&(0,t.jsxs)("div",{className:"px-6 py-3 text-sm text-slate-300",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"📲"})," Add to Home Screen",(0,t.jsx)("div",{className:"text-xs text-slate-500 mt-0.5",children:"In Safari: tap Share → Add to Home Screen"})]}),"manual"===o&&(0,t.jsxs)("div",{className:"px-6 py-3 text-sm text-slate-300",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"📲"})," Add to Home Screen",(0,t.jsx)("div",{className:"text-xs text-slate-500 mt-0.5",children:"Tap ⋮ in your browser, then “Add to Home screen”."})]})]})]})}])},46251,e=>{"use strict";var t=e.i(843476);let r=[{icon:(0,t.jsx)(function(){return(0,t.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})},{}),label:"Secure SSL checkout"},{icon:(0,t.jsx)(function(){return(0,t.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})},{}),label:"256-bit encryption"}],a={icon:(0,t.jsx)(function(){return(0,t.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 10h18M7 15h1m4 0h1m-7 4h12a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})},{}),label:"Visa · Mastercard · Amex"};e.s(["default",0,function({className:e="",provider:n="Whop",showCards:s=!0}){let i=s?[...r,a]:r;return(0,t.jsxs)("div",{className:`flex flex-wrap items-center gap-x-4 gap-y-1.5 ${e}`,children:[i.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-slate-400 text-xs",children:[e.icon,e.label]},e.label)),n&&(0,t.jsxs)("span",{className:"text-slate-500 text-xs",children:["Payments secured by ",n]})]})}])},683036,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(522016),n=e.i(618566),s=e.i(456420);let i=(0,s.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),l=(0,s.default)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),o=(0,s.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),c=(0,s.default)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}
1]]),d=(0,s.default)("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]),u=(0,s.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),h=(0,s.default)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),m=(0,s.default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),p=(0,s.default)("images",[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]),x=(0,s.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),f=(0,s.default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]),y=(0,s.default)("person-standing",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]]),g=(0,s.default)("shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]),b=(0,s.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),v=(0,s.default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]),k=(0,s.default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]),j=(0,s.default)("clapperboard",[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]]),w=(0,s.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),N=(0,s.default)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]),E=(0,s.default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),C=(0,s.default)("scaling",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M14 15H9v-5",key:"pi4jk9"}],["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M21 3 9 15",key:"15kdhq"}]]),M=(0,s.default)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),S=(0,s.default)("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]),P=(0,s.default)("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),L=(0,s.default)("image-down",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]),$=(0,s.default)("scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);var A=e.i(741120);let T=(0,s.default)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]),_=(0,s.default)("scan-face",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 9h.01",key:"x1ddxp"}]]),F={smile:h,video:m,images:p,user:x,"user-round":f,"person-standing":y,shirt:g,sparkles:b,camera:v,film:k,clapperboard:j,mic:w,wand:N,maximize:E,scaling:C,workflow:M,eraser:S,"fast-forward":P,"image-down":L,scissors:$,"refresh-cw":A.RefreshCw,minimize:T,"scan-face":_};var O=e.i(786563),I=e.i(128202);function D({groups:e,email:r,collapsed:s,onToggleCollapse:h,mobileOpen:m,onCloseMobile:p}){let x=(0,n.usePathname)(),f=e=>x===e||x.startsWith(e+"/"),y=s?"w-60 md:w-[4.5rem]":"w-60";return(0,t.jsxs)("aside",{className:`${y} shrink-0 flex flex-col z-50 h-dvh
2        fixed inset-y-0 left-0 md:sticky md:top-0
3        transition-transform duration-200 ease-out
4        ${m?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{background:"#0F1117",borderRight:"1px solid #1E2740"},children:[(0,t.jsxs)("div",{className:`flex items-center gap-2 px-3 h-14 shrink-0 ${s?"md:flex-col md:items-center md:gap-1 md:px-2 md:py-2 md:h-auto":""}`,style:{background:"linear-gradient(90deg, #1FB0E8 0%, #2D1B6E 100%)"},children:[(0,t.jsxs)(a.default,{href:"/home",onClick:p,className:"flex items-center min-w-0 hover:opacity-90",children:[(0,t.jsx)("img",{src:"/logo.svg",alt:"PhotoHero",className:`h-8 w-auto ${s?"md:hidden":""}`}),(0,t.jsx)("img",{src:"/icon-192.png",alt:"PhotoHero",className:`h-8 w-8 rounded-lg ${s?"hidden md:block":"hidden"}`})]}),(0,t.jsxs)("div",{className:`flex items-center ${s?"ml-auto md:ml-0":"ml-auto"}`,children:[(0,t.jsx)("button",{onClick:p,"aria-label":"Close menu",className:"md:hidden w-10 h-10 rounded-lg flex items-center justify-center text-white/80 hover:bg-white/15 hover:text-white",children:(0,t.jsx)(u,{className:"w-5 h-5"})}),(0,t.jsx)("button",{onClick:h,"aria-label":s?"Expand sidebar":"Collapse sidebar",className:"hidden md:flex w-10 h-10 rounded-lg items-center justify-center text-white/80 hover:bg-white/15 hover:text-white",children:s?(0,t.jsx)(d,{className:"w-5 h-5"}):(0,t.jsx)(c,{className:"w-5 h-5"})})]})]}),(0,t.jsxs)("nav",{className:"flex-1 overflow-y-auto px-2 py-3 space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(R,{href:"/home",label:"Home",Icon:i,active:f("/home"),collapsed:s,onNavigate:p}),(0,t.jsx)(R,{href:"/gallery",label:"Gallery",Icon:l,active:f("/gallery"),collapsed:s,onNavigate:p})]}),e.map(e=>(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)("div",{className:`px-3 pt-1 pb-1 text-[10px] font-semibold uppercase tracking-widest text-slate-600 ${s?"md:hidden":""}`,children:e.label}),s&&(0,t.jsx)("div",{className:"mx-3 my-1 border-t border-[#1A2540] hidden md:block"}),e.items.map(e=>(0,t.jsx)(R,{href:e.href,label:e.title,Icon:F[e.icon]??b,active:f(e.href),collapsed:s,offline:e.offline,onNavigate:p},e.href))]},e.key))]}),(0,t.jsxs)("div",{className:"px-2 py-3 shrink-0 space-y-3",style:{borderTop:"1px solid #1E2740"},children:[(0,t.jsxs)(a.default,{href:"/pricing",onClick:p,title:"Buy Credits",className:`flex items-center gap-3 rounded-lg text-[#0F1117] font-bold bg-[#FFD400] hover:bg-[#FFDD33] transition-colors
5            ${s?"md:justify-center md:px-0 px-3 h-11":"px-3 h-11"}`,children:[(0,t.jsx)(o,{className:"w-5 h-5 shrink-0"}),(0,t.jsx)("span",{className:s?"md:hidden":"",children:"Buy Credits"})]}),(0,t.jsxs)("div",{className:`hidden md:flex items-center ${s?"md:justify-center":"justify-between px-1"}`,children:[!s&&(0,t.jsx)(a.default,{href:"/pricing",className:"inline-flex items-center","aria-label":"Buy credits",children:(0,t.jsx)(O.default,{})}),(0,t.jsx)(I.default,{email:r,dropUp:!0})]})]})]})}function R({href:e,label:r,Icon:n,active:s,collapsed:i,offline:l,onNavigate:o}){let c=`group flex items-center gap-3 rounded-lg h-11 text-sm transition-colors ${i?"md:justify-center md:px-0 px-3":"px-3"}`,d=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{className:"w-5 h-5 shrink-0"}),(0,t.jsx)("span",{className:`truncate ${i?"md:hidden":""}`,children:r}),l&&(0,t.jsx)("span",{className:`ml-auto text-[9px] uppercase tracking-wide text-amber-400/80 ${i?"md:hidden":""}`,children:"off"})]});return l?(0,t.jsx)("div",{"aria-disabled":!0,title:`${r} — under maintenance`,className:`${c} text-slate-600 cursor-not-allowed select-none`,children:d}):(0,t.jsx)(a.default,{href:e,onClick:o,title:i?r:void 0,className:`${c} ${s?"text-white":"text-slate-400 hover:text-white hover:bg-[#1E2740]"}`,style:s?{background:"rgba(0,150,230,0.14)",boxShadow:"inset 2px 0 0 #0096E6"}:void 0,children:d})}let B=(0,s.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);function z({email:e,onMenu:r}){return(0,t.jsxs)("header",{className:"md:hidden sticky top-0 z-30 h-14 shrink-0 flex items-center justify-between px-3 sm:px-5",style:{background:"rgba(15,17,23,0.85)",borderBottom:"1px solid #1E2740",backdropFilter:"blur(8px)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{onClick:r,"aria-label":"Open menu",className:"w-10 h-10 rounded-lg flex items-center justify-center text-slate-300 hover:bg-[#1E2740] hover:text-white",children:(0,t.jsx)(B,{className:"w-5 h-5"})}),(0,t.jsx)(a.default,{href:"/home",className:"flex items-center hover:opacity-90",children:(0,t.jsx)("img",{src:"/logo.svg",alt:"PhotoHero",className:"h-7 w-auto"})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.default,{href:"/pricing","aria-label":"Buy credits",className:"flex items-center justify-center w-9 h-9 rounded-lg text-[#0F1117] bg-[#FFD400] hover:bg-[#FFDD33] transition-colors",children:(0,t.jsx)(o,{className:"w-4 h-4"})}),(0,t.jsx)(a.default,{href:"/pricing",className:"inline-flex items-center","aria-label":"Credits balance",children:(0,t.jsx)(O.default,{})}),(0,t.jsx)(I.default,{email:e})]})]})}let U="ph_sidebar_collapsed";e.s(["default",0,function({groups:e,email:a,banners:n,children:s}){let[i,l]=(0,r.useState)(!1),[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{try{"1"===localStorage.getItem(U)&&l(!0)}catch{}},[]),(0,r.useEffect)(()=>
5{if(!o)return;let e=e=>{"Escape"===e.key&&c(!1)};document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[o]),(0,t.jsxs)("div",{className:"ph-shell flex min-h-dvh",style:{color:"#E2E8F0","--ph-shell-w-md":i?"4.5rem":"15rem"},children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none fixed inset-0",style:{background:"radial-gradient(90rem 42rem at 72% -12%, rgba(31,176,232,0.15), transparent 60%), radial-gradient(70rem 36rem at 14% -8%, rgba(45,27,110,0.45), transparent 65%), #0F1117"}}),(0,t.jsx)(D,{groups:e,email:a,collapsed:i,onToggleCollapse:()=>l(e=>{let t=!e;try{localStorage.setItem(U,t?"1":"0")}catch{}return t}),mobileOpen:o,onCloseMobile:()=>c(!1)}),o&&(0,t.jsx)("div",{className:"md:hidden fixed inset-0 z-40 bg-black/60",onClick:()=>c(!1),"aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative flex-1 min-w-0 flex flex-col",children:[(0,t.jsx)(z,{email:a,onMenu:()=>c(!0)}),n,(0,t.jsx)("main",{className:"flex-1",style:{paddingBottom:"calc(5rem + env(safe-area-inset-bottom, 0px))"},children:s})]})]})}],683036)},977845,e=>{"use strict";let t={"720p":4,"1080p":6,"2k":9,"4k":14};function r(e,t=2.7){return Math.max(1,Math.ceil(e.trim().split(/\s+/).filter(Boolean).length/t))}e.s(["CREDITS_PER_SECOND",0,2,"DEFAULT_WPS",0,2.7,"MAX_HEAD_SWAP_VIDEO_SECONDS",0,10,"MAX_TALK_SECONDS",0,15,"SPEED_MAX_WPS",0,3.5,"SPEED_MIN_WPS",0,2,"computeCompositeSwapCost",0,function(){return 4}
5,"computeConcatCost",0,function(){return 0},"computeCost",0,function(e,t){return Math.max(1,Math.ceil((t-e)*2))},"computeEditCost",0,function(){return 3},"computeFaceGenCost",0,function(){return 1},"computeHeadSwapVideoCost",0,function(e){return Math.max(1,Math.ceil(5*e))},"computeImageCost",0,function(e=1){return+Math.max(1,e)},"computeRetouchCost",0,function(){return 3},"computeTextCost",0,function(){return 2},"computeUpscaleCost",0,function(){return 2},"computeVideoCost",0,function(e,t="720p",r){return Math.max(1,Math.ceil(e*("ltx_hd"===r?8:"480p"===t?5:8)))},"computeVideoUpscaleCost",0,function(e,r,a){return Math.max(1,Math.ceil((r-e)*t[a]))},"estimateSpeechSeconds",0,r,"talkingPhotoSeconds",0,function(e,t){return Math.min(15,r(e,t))}])},95113,e=>{"use strict";function t(){return!0===navigator.standalone||"function"==typeof window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches}e.s(["isIosNotStandalone",0,function(){if("u"<typeof navigator)return!1;let e=navigator.userAgent;return(/iPhone|iPad|iPod/i.test(e)||/Macintosh/.test(e)&&navigator.maxTouchPoints>1)&&!t()},"isStandalone",0,t])},530925,e=>{"use strict";e.i(247167),e.s(["subscriptionSalesEnabled",0,function(){return!0}])},882715,e=>{"use strict";var t=e.i(977845);let r=[{credits:100,price:1,label:"100 Credits",desc:"1 cent/credit",adminOnly:!0},{credits:200,price:4.99,label:"200 Credits",desc:"2.5 cents/credit"},{credits:500,price:9.99,label:"500 Credits",desc:"2 cents/credit"},{credits:1100,price:19.99,label:"1,100 Credits",desc:"1.8 cents/credit"},{credits:2500,price:34.99,label:"2,500 Credits",desc:"1.4 cents/credit"},{credits:5e3,price:59.99,label:"5,000 Credits",desc:"1.2 cents/credit"},{credits:1e4,price:99.99,label:"10,000 Credits",desc:"1 cent/credit",bonusPct:10},{credits:2e4,price:179.99,label:"20,000 Credits",desc:"0.9 cents/credit",bonusPct:10},{credits:4e4,price:319.99,label:"40,000 Credits",desc:"0.8 cents/credit",bonusPct:10}],a=[{key:"starter-monthly",name:"Starter",interval:"month",credits:1e3,price:9.99,monthlyEquivalent:9.99,monthlyListPrice:9.99},{key:"pro-monthly",name:"Pro",interval:"month",credits:2500,price:19.99,monthlyEquivalent:19.99,monthlyListPrice:19.99,badge:"Most popular",includes:"Everything in Starter"},{key:"elite-monthly",name:"Elite",interval:"month",credits:6e3,price:49.99,monthlyEquivalent:49.99,monthlyListPrice:49.99,includes:"Everything in Pro"},{key:"legend-monthly",name:"Legend",interval:"month",credits:12500,price:99.99,monthlyEquivalent:99.99,monthlyListPrice:99.99,includes:"Everything in Elite"},{key:"starter-yearly",name:"Starter",interval:"year",credits:12e3,price:99,monthlyEquivalent:8.25,monthlyListPrice:9.99},{key:"pro-yearly",name:"Pro",interval:"year",credits:3e4,price:199,monthlyEquivalent:16.58,monthlyListPrice:19.99,badge:"Most popular",includes:"Everything in Starter"},{key:"elite-yearly",name:"Elite",interval:"year",credits:72e3,price:499,monthlyEquivalent:41.58,monthlyListPrice:49.99,includes:"Everything in Pro"},{key:"legend-yearly",name:"Legend",interval:"year",credits:15e4,price:999,monthlyEquivalent:83.25,monthlyListPrice:99.99,includes:"Everything in Elite"},{key:"test-daily-a",name:"Starter",interval:"month",credits:10,price:1,monthlyEquivalent:1,monthlyListPrice:1,adminOnly:!0,periodDaysOverride:2},{key:"test-daily-b",name:"Pro",interval:"month",credits:20,price:2,monthlyEquivalent:2,monthlyListPrice:2,adminOnly:!0,periodDaysOverride:2}];function n(e){let t=r.filter(e=>!e.adminOnly);return t.find(t=>t.credits>=e)??t[t.length-1]}e.s(["CREDIT_TIERS",0,r,"SUBSCRIPTION_TIERS",0,a,"cryptoBonusCredits",0,function(e){return!Number.isInteger(e)||e<=0?0:Math.floor(10*e/100)},"durationAtBurnLabel",0,function(e,t){if(!Number.isFinite(t)||t<=0)return null;let r=e/t;if(r<1)return null;let a="at your current rate";return r<14?`≈ ${Math.round(r)} days ${a}`:r<60?`≈ ${Math.round(r/7)} weeks ${a}`:r<365?`≈ ${Math.round(r/30)} months ${a}`:`over a year ${a}`},"firstCryptoBonusCredits",0,function(e){return!Number.isInteger(e)||e<=0?0:Math.floor(25*e/100)},"formatUsd",0,function(e){return Number.isInteger(e)?`$${e.toLocaleStr
5ing()}`:`$${e.toFixed(2)}`},"packBonusCredits",0,function(e){let t=r.find(t=>t.credits===e)?.bonusPct??0;return Math.floor(e*t/100)},"preciseVideoLengthLabel",0,function(e){let r=Math.round(e/t.CREDITS_PER_SECOND/60),a=Math.floor(r/60),n=r%60;return a>0&&n>0?`up to ${a} hour${1===a?"":"s"} and ${n} minutes of face-swap video`:a>0?`up to ${a} hour${1===a?"":"s"} of face-swap video`:`up to ${n} minutes of face-swap video`},"recommendTier",0,function(e,t){let a=r.filter(e=>!e.adminOnly),s=n(e);if(!Number.isFinite(t)||t<=0)return s;let i=n(Math.max(e,30*t)),l=Math.min(a.indexOf(i),a.indexOf(s)+2);return a[l]},"smallestTierCovering",0,n,"subscriptionPeriodDays",0,function(e){return e.periodDaysOverride??("year"===e.interval?365:30)},"subscriptionTierByKey",0,function(e){return a.find(t=>t.key===e)},"videoLengthLabel",0,function(e){let r=Math.round(e/t.CREDITS_PER_SECOND);return e>=500?`${Math.round(r/60).toLocaleString()} min of face-swap video`:`${r.toLocaleString()} sec of face-swap video`}])},737659,e=>{"use strict";var t=e.i(271645),r=e.i(95113);function a(){return(0,r.isStandalone)()?"none":(0,r.isIosNotStandalone)()?"ios":window.__deferredInstallPrompt?"prompt":"u">typeof navigator&&/Android/i.test(navigator.userAgent)?"pending":"none"}e.s(["useInstallPrompt",0,function(){let[e,n]=(0,t.useState)(a);return(0,t.useEffect)(()=>{let e=window,t=()=>{e.__deferredInstallPrompt&&!(0,r.isStandalone)()&&n("prompt")},a=()=>n("none");window.addEventListener("pwa-installable",t),window.addEventListener("appinstalled",a);let s=navigator;return s.getInstalledRelatedApps?.().then(e=>{e.some(e=>"webapp"===e.platform)&&n("none")}).catch(()=>{}),()=>{window.removeEventListener("pwa-installable",t),window.removeEventListener("appinstalled",a)}},[]),(0,t.useEffect)(()=>{if("pending"!==e)return;let t=setTimeout(()=>n(e=>"pending"===e?"manual":e),3e3);return()=>clearTimeout(t)},[e]),{capability:e,promptInstall:async()=>{let e=window,t=e.__deferredInstallPrompt;if(!t)return"unavailable";await t.prompt();let{outcome:r}=await t.userChoice;return e.__deferredInstallPrompt=void 0,n("none"),r}}}])},505014,e=>{"use strict";var t=e.i(271645),r=e.i(871987),a=e.i(388973),n=e.i(396661);let s=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:i,strokeWidth:l,absoluteStrokeWidth:o,className:c="",children:d,iconNode:u,...h},m)=>{let{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:f=!1,color:y="currentColor",className:g=""}=(0,t.useContext)(s)??{},b=o??f?24*Number(l??x)/Number(i??p):l??x;return(0,t.createElement)("svg",{ref:m,...r.default,width:i??p??r.default.width,height:i??p??r.default.height,stroke:e??y,strokeWidth:b,className:(0,n.mergeClasses)("lucide",g,c),...!d&&!(0,a.hasA11yProp)(h)&&{"aria-hidden":"true"},...h},[...u.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(d)?d:[d]])});e.s(["default",0,i],505014)},456420,e=>{"use strict";var t=e.i(271645),r=e.i(396661);let a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var n=e.i(505014);e.s(["default",0,(e,s)=>{let i=(0,t.forwardRef)(({className:i,...l},o)=>(0,t.createElement)(n.default,{ref:o,iconNode:s,className:(0,r.mergeClasses)(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...l}));return i.displayName=a(e),i}],456420)},871987,388973,e=>{"use strict";e.s(["default",0,{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"}],871987),e.s(["hasA11yProp",0,e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1}],388973)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},396661,e=>{"use strict";e.s(["mergeClasses",0,(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()])},522016,(e,t,r)=>{"use strict";
5e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return y},useLinkStatus:function(){return b}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=e.r(190809),i=e.r(843476),l=s._(e.r(271645)),o=e.r(195057),c=e.r(8372),d=e.r(818581),u=e.r(718967),h=e.r(405550),m=e.r(388540),p=e.r(91949),x=e.r(573668),f=e.r(509396);function y(t){var r;let a,n,s,[y,b]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,l.useRef)(null),{href:k,as:j,children:w,prefetch:N=null,passHref:E,replace:C,shallow:M,scroll:S,onClick:P,onMouseEnter:L,onTouchStart:$,legacyBehavior:A=!1,onNavigate:T,transitionTypes:_,ref:F,unstable_dynamicOnHover:O,...I}=t;a=w,A&&("string"==typeof a||"number"==typeof a)&&(a=(0,i.jsx)("a",{children:a}));let D=l.default.useContext(c.AppRouterContext),R=!1!==N,B=!1===N?"none":!0===N?"full":"auto",z="none"!==B?"auto"===B?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,U="string"==typeof(r=j||k)?r:(0,o.formatUrl)(r);if(A){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=l.default.Children.only(a)}let H=A?n&&"object"==typeof n&&n.ref:F,W,q=l.default.useCallback(e=>(null!==D&&(v.current=(0,p.mountLinkInstance)(e,U,D,z,R,b,W)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[R,U,D,z,b,W]),V={ref:(0,d.useMergedRef)(q,H),onClick(t){A||"function"!=typeof P||P(t),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!D||t.defaultPrevented||function(t,r,a,n,s,i,o,c="none"){if("u">typeof window){let d,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((d=t.currentTarget.getAttribute("target"))&&"_self"!==d||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,x.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(699781);l.default.startTransition(()=>{h(r,n?"replace":"push",!1===s?m.ScrollBehavior.NoScroll:m.ScrollBehavior.Default,a.current,o,c)})}}(t,U,v,C,S,T,_,B)},onMouseEnter(e){A||"function"!=typeof L||L(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),D&&R&&(0,p.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){A||"function"!=typeof $||$(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),D&&R&&(0,p.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,u.isAbsoluteUrl)(U)?V.href=U:A&&!E&&("a"!==n.type||"href"in n.props)||(V.href=(0,h.addBasePath)(U)),s=A?l.default.cloneElement(n,V):(0,i.jsx)("a",{...I,...V,children:a}),(0,i.jsx)(g.Provider,{value:y,children:s})}let g=(0,l.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,l.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let a=e.r(271645);function n(e,t){let r=(0,a.useRef)(null),n=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=s(e,a)),t&&(n.current=s(t,a))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},718967,(e,t,r)=>{"use strict";
5e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return v},NormalizeError:function(){return g},PageNotFoundError:function(){return b},SP:function(){return x},ST:function(){return f},WEB_VITALS:function(){return s},execOnce:function(){return i},getDisplayName:function(){return u},getLocationOrigin:function(){return c},getURL:function(){return d},isAbsoluteUrl:function(){return o},isResSent:function(){return h},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return j}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&l.test(e)};function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function d(){let{href:e}=window.location,t=c();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function m(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&h(r))return a;if(!a)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return a}let x="u">typeof performance,f=x&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class g extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let a=e.r(718967),n=e.r(652817);function s(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return o},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return l}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});function s(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,i(e));else t.set(r,i(a));return t}function o(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},195057,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=e.r(190809)._(e.r(998183)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,a=e.protocol||"",n=e.pathname||"",l=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(s.urlQueryToSearchParams(o)));let d=e.search||o&&`?${o}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||i.test(a))&&!1!==c?(c="//"+(c||""),n&&"/"!==n[0]&&(n="/"+n)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),n=n.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${a}${c}${n}${d}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}}]);

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.