PageSourceSearch

https://maxart.ai/_next/static/chunks/bade4d254a64c34f.js

js maxart.ai collected 2026-10-05 12:15:13 UTC 58,567 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53305,e=>{"use strict";var t=e.i(71645),r=e.i(25642);e.s(["default",0,({gaId:e})=>((0,t.useEffect)(()=>(0,r.deferThirdParty)(`google-analytics:${e}`,()=>{if(document.getElementById("google-analytics"))return;let t=window;t.dataLayer=t.dataLayer??[],t.gtag=(...e)=>{t.dataLayer?.push(e)},t.gtag("js",new Date),t.gtag("config",e);let r=document.createElement("script");r.id="google-analytics",r.async=!0,r.src=`https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(e)}`,document.head.appendChild(r)}),[e]),null)])},62050,e=>{"use strict";var t=e.i(71645),r=e.i(79175),i=e.i(25642);e.s(["default",0,()=>((0,t.useEffect)(()=>(0,i.deferThirdParty)("plausible",()=>{if(document.getElementById("plausible-script"))return;let e=document.createElement("script");e.id="plausible-script",e.defer=!0,e.dataset.domain=r.siteConfig.domain,e.src="https://app.pageview.app/js/script.js",document.head.appendChild(e)}),[]),null)])},39130,e=>{"use strict";var t=e.i(71645),r=e.i(25642);e.s(["default",0,()=>((0,t.useEffect)(()=>(0,r.deferThirdParty)("analytic-app",()=>{if(document.getElementById("analytic-app-script"))return;let e=document.createElement("script");e.id="analytic-app-script",e.defer=!0,e.dataset.siteId="412c7d06ce49",e.src="https://r.analytic.app/api/script.js",document.head.appendChild(e)}),[]),null)])},14063,e=>{"use strict";var t=e.i(95303);function r(e){let r=e,i=/^\/([^\/]*)(\/|$)/,n=e.match(i);if(n){let a=n[1];t.locales.includes(a)&&(r=e===`/${a}`?"/":e.replace(i,"/"))}return[r,function(e){return"/"===r&&(""===e||"/"===e)||(console.log("isActive ",{pathWithOutLocale:r,href:e}),r==e&&"/"!==e)}]}e.s(["default",()=>r])},54421,e=>{"use strict";function t(e){document.cookie=`NEXT_LOCALE=${encodeURIComponent(e)}; Path=/; Max-Age=31536000; SameSite=Lax`}e.s(["syncLocaleCookie",()=>t])},10272,e=>{"use strict";var t=e.i(43476),r=e.i(71645),i=e.i(22016),n=e.i(57688),a=e.i(18566),s=e.i(26732),o=e.i(58101),l={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let d=(e,t,i,n)=>{let a=(0,r.forwardRef)(({color:i="currentColor",size:a=24,stroke:s=2,title:o,className:d,children:c,...u},m)=>(0,r.createElement)("svg",{ref:m,...l[e],width:a,height:a,className:["tabler-icon",`tabler-icon-${t}`,d].join(" "),..."filled"===e?{fill:i}:{strokeWidth:s,stroke:i},...u},[o&&(0,r.createElement)("title",{key:"svg-title"},o),...n.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return a.displayName=`${i}`,a},c=d("outline","credit-card","CreditCard",[["path",{d:"M3 8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -8",key:"svg-0"}],["path",{d:"M3 10l18 0",key:"svg-1"}],["path",{d:"M7 15l.01 0",key:"svg-2"}],["path",{d:"M11 15l2 0",key:"svg-3"}]]),u=d("outline","folder","Folder",[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]]),m=d("outline","language","Language",[["path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629",key:"svg-0"}],["path",{d:"M4 6.371h7",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.252 3.908 6 4",key:"svg-2"}],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}],["path",{d:"M6.694 3l.793 .582",key:"svg-5"}]]),f=d("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]]),p=d("outline","layout-sidebar-left-expand","LayoutSidebarLeftExpand",[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M14 10l2 2l-2 2",key:"svg-2"}]]),h=d("outline","menu-2","Menu2",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l16 0",key:"svg-2"}]]),g=d("outline","movie","Movie",[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M8 4l0 16",key:"svg-1"}],["path",{d:"M16 4l0 16",key:"svg-2"}],["path",{d:"M4 8l4 0",key:"svg-3"}],["path",{d:"M4 16l4 0",key:"svg-4"}],["path",{d:"M4 12l16 0",key:"svg-5"}],["path",{d:"M16 8l4 0",key:"svg-6"}],["path",{d:"M16 16l4 0",key:"svg-7"}]]),v=d("outline","photo","Photo",[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]]),x=d("outline","sparkles","Sparkles",[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6",key:"svg-0"}
1]]),y=d("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]),b=Object.freeze([{id:"create",items:Object.freeze([{id:"video-effects",href:"/ai-video-effects",icon:"video"},{id:"image-effects",href:"/ai-image-effects",icon:"image"}])},{id:"models",items:Object.freeze([{id:"gpt-image-2-5",href:"/models/gpt-image-2-5",icon:"sparkles",iconSrc:"https://static.maxart.ai/sora-icon.svg",isNew:!0},{id:"seedance-2-5",href:"/models/seedance-2-5",icon:"sparkles",iconSrc:"https://static.maxart.ai/bytedance-icon.svg",isNew:!0},{id:"gpt-image-2",href:"/models/gpt-image-2",icon:"sparkles",iconSrc:"https://static.maxart.ai/sora-icon.svg"},{id:"happy-horse",href:"/models/happy-horse",icon:"sparkles",iconSrc:"https://static.maxart.ai/models/happy-horse/happyhorse-icon-v1.png"},{id:"seedance-2-0",href:"/models/seedance-2-0",icon:"sparkles",iconSrc:"https://static.maxart.ai/bytedance-icon.svg"},{id:"seedream-5-0-pro",href:"/models/seedream-5-0-pro",icon:"sparkles",iconSrc:"https://static.maxart.ai/bytedance-icon.svg"},{id:"oii-oii-ai",href:"/models/oii-oii-ai",icon:"sparkles"},{id:"a2e-ai",href:"/models/a2e-ai",icon:"sparkles",iconSrc:"https://static.maxart.ai/models/a2e-ai/a2e-ai-listing-v1.webp",isNew:!0},{id:"google-flow",href:"/models/google-flow",icon:"sparkles",iconSrc:"https://static.maxart.ai/google-icon.svg"}])},{id:"account",items:Object.freeze([{id:"assets",href:"/assets",icon:"folder",requiresAuth:!0}])}]);var w=e.i(95303),k=e.i(21406),j=e.i(14063),E=e.i(54421),C=e.i(57992),N=e.i(79175);let L={video:g,image:v,sparkles:x,folder:u};function P({children:e,locale:l}){let d=(0,a.usePathname)(),{status:c,data:u}=(0,s.useSession)(),m="authenticated"===c,[g,v]=(0,r.useState)(!1),[x,L]=(0,r.useState)(!1),[P]=(0,j.default)(d),[M,A]=function(e=w.DEFAULT_LOCALE){let t=k.default;return[(0,r.useMemo)(()=>t[e],[e,t]),(0,r.useMemo)(()=>Object.keys(t).filter(t=>t!==e).map(e=>({key:e,name:t[e]})),[t,e])]}(l),_=(0,r.useMemo)(()=>(0,C.getPageLocales)(P.replace(/^\/+/,"")),[P]),R=(0,r.useMemo)(()=>_?A.filter(e=>_.includes(e.key)):A,[A,_]),$=(0,r.useMemo)(()=>b.map(e=>({...e,items:e.items.filter(e=>!e.requiresAuth||m)})).filter(e=>e.items.length>0),[m]);(0,r.useEffect)(()=>{v("true"===window.localStorage.getItem("maxart-sidebar-collapsed"))},[]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&L(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let I=e=>l===w.DEFAULT_LOCALE?e:`/${l}${e}`,O={groups:$,collapsed:g,hrefFor:I,pathWithoutLocale:P,onNavigate:()=>L(!1)},D={currentLocale:M,visibleLocales:R,onLocaleChange:e=>{(0,E.syncLocaleCookie)(e),L(!1),window.location.assign(e===w.DEFAULT_LOCALE?P:`/${e}${P}`)}};return"/checkout"===P?(0,t.jsx)("div",{className:"min-h-screen bg-background text-foreground",children:(0,t.jsx)("main",{className:"app-content min-h-screen",children:e})}):(0,t.jsxs)("div",{className:"min-h-screen bg-background text-foreground",children:[(0,t.jsxs)("header",{className:"sticky top-0 z-40 flex min-h-16 items-center gap-3 border-b border-white/10 bg-background/80 px-4 backdrop-blur-xl sm:px-5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{var e;v(e=!g),window.localStorage.setItem("maxart-sidebar-collapsed",String(e))},className:"hidden rounded-lg p-2 text-white/60 transition hover:bg-white/10 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary xl:inline-flex","aria-label":g?o.i18n._({id:"tugdy6",message:"Expand sidebar"}):o.i18n._({id:"mkMLq4",message:"Collapse sidebar"}),title:g?o.i18n._({id:"tugdy6",message:"Expand sidebar"}):o.i18n._({id:"mkMLq4",message:"Collapse sidebar"}),children:g?(0,t.jsx)(p,{size:18,"aria-hidden":"true"}):(0,t.jsx)(f,{size:18,"aria-hidden":"true"})}),(0,t.jsx)("button",{type:"button",onClick:()=>L(!0),className:"inline-flex rounded-lg p-2 text-white/80 transition hover:bg-white/10 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary xl:hidden","aria-label":o.i18n._({id:"M/Q2aG",message:"Open navigation"}),children:(0,t.jsx)(h,{size:22,"aria-hidden":"true"})}),(0,t.jsxs)(i.default,{href:I("/"),className:"flex min-w-0 items-center gap-2","aria-label":"MaxArt AI",children:[(0,t.jsx)(n.default,{src:"/logo.png",alt:"",width:36,height:36,priority:!0,className:"h-9 w-9 shrink-0 object-contain"}),(0,t.jsx)("span",{className:"min-w-0 truncate bg-gradient-to-r from-primary-light via-primary to-secondary bg-clip-text text-lg font-extrabold tracking-tight text-transparent transition-opacity hover:opacity-85 sm:text-xl",children:"MaxArt AI"})]})]}),(0,t.jsx)("div",{className:"ml-auto flex items-center gap-2",children:(0,t.jsx)(S,{pricingHref:I("/pricing"),pricingActive:"/pricing"===P,isAuthenticated:m,userName:u?.user?.name??"",userImage:u?.user?.image??"",userCredit:u?.user?.credit??0,onSignIn:()=>(0,s.signIn)("google"),onSignOut:()=>(0,s.signOut)()})})]}),(0,t.jsx)("aside",{className:`fixed bottom-0 left-0 top-16 z-30 hidden w-[72px] flex-col border-r border-white/10 bg-background/95 backdrop-blur-xl transition-[width] duration-200 motion-reduce:transition-none md:flex ${g?"xl:w-[72px]":"xl:w-64"}`,"aria-label":o.i18n._({id:"DWvioR",message:"Primary navigation"}),children:(0,t.jsx)(T,{...O,...D,compactAtTablet:!0})}),(0,t.jsx)("div",{className:`min-h-[calc(100vh-4rem)] md:pl-[72px] ${g?"xl:pl-[72px]":"xl:pl-64"} transition-[padding] duration-200 motion-reduce:transition-none`,children:(0,t.jsx)("main",{className:"app-content min-h-[calc(100vh-4rem)]",children:e})}),x&&(0,t.jsxs)("div",{className:"fixed inset-0 z-50 xl:hidden",role:"dialog","aria-modal":"true","aria-label":o.i18n._({id:"TizFpt",message:"Navigation menu"}),children:[(0,t.jsx)("button",{type:"button",className:"absolute inset-0 bg-black/65 backdrop-blur-sm","aria-label":o.i18n._({id:"sb4dXL",message:"Close navigation"}),onClick:()=>L(!1)}),(0,t.jsxs)("aside",{className:"relative flex h-full w-[min(18rem,84vw)] flex-col border-r border-white/10 bg-background shadow-2xl md:ml-[72px]",children:[(0,t.jsxs)("div",{className:"flex h-16 items-center justify-between border-b border-white/10 px-4",children:[(0,t.jsxs)(i.default,{href:I("/"),onClick:()=>L(!1),className:"flex items-center gap-2 text-sm font-bold text-white",children:[(0,t.jsx)(n.default,{src:"/logo.png",alt:"",width:32,height:32,className:"h-8 w-auto"}),(0,t.jsx)("span",{children:N.siteConfig.name})]}),(0,t.jsx)("button",{type:"button",onClick:()=>L(!1),className:"rounded-lg p-2 text-white/80 transition hover:bg-white/10 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary","aria-label":o.i18n._({id:"sb4dXL",message:"Close navigation"}),children:(0,t.jsx)(y,{size:20,"aria-hidden":"true"})})]}),(0,t.jsx)(T,{...O,...D,collapsed:!1})]})]})]})}function T({groups:e,collapsed:n,hrefFor:a,pathWithoutLocale:s,onNavigate:l,compactAtTablet:d,currentLocale:c,visibleLocales:u,onLocaleChange:f}){let[p,h]=(0,r.useState)(!1),g=(0,r.useRef)(null);(0,r.useEffect)(()=>
1{if(!p)return;let e=e=>{g.current&&!g.current.contains(e.target)&&h(!1)},t=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[p]);let v={create:o.i18n._({id:"hYgDIe",message:"Create"}),models:o.i18n._({id:"//nm2/",message:"Models"}),account:o.i18n._({id:"AeXO77",message:"Account"})},x={"video-effects":o.i18n._({id:"/2lDrf",message:"AI Video Effects"}),"image-effects":o.i18n._({id:"qD+JMo",message:"AI Image Effects"}),"gpt-image-2-5":o.i18n._({id:"NOyjjl",message:"GPT Image 2.5"}),"gpt-image-2":o.i18n._({id:"3VLTM2",message:"GPT Image 2"}),"happy-horse":o.i18n._({id:"2ziTAP",message:"Happy Horse"}),"seedance-2-0":o.i18n._({id:"RSUgyJ",message:"Seedance 2.0"}),"seedance-2-5":o.i18n._({id:"6Cwhy5",message:"Seedance 2.5"}),"seedream-5-0-pro":o.i18n._({id:"m1pEkb",message:"Seedream 5.0 Pro"}),"oii-oii-ai":o.i18n._({id:"spY7XM",message:"OiiOii AI"}),"a2e-ai":o.i18n._({id:"RxInfP",message:"A2E AI"}),"google-flow":o.i18n._({id:"6922x6",message:"Google Flow"}),assets:o.i18n._({id:"+tNVNc",message:"My Assets"})},y=n?"justify-center px-0":d?"justify-center px-0 xl:justify-start xl:gap-3 xl:px-3":"gap-3 px-3",b=n?"hidden":d?"hidden xl:inline":"inline",w=n?"sr-only":d?"sr-only xl:not-sr-only xl:mb-2 xl:px-2 xl:text-[11px] xl:font-semibold xl:uppercase xl:tracking-[0.14em] xl:text-white/40":"mb-2 px-2 text-[11px] font-semibold uppercase tracking-[0.14em] text-white/40";return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-3 py-4",children:(0,t.jsx)("nav",{className:"space-y-5","aria-label":o.i18n._({id:"DWvioR",message:"Primary navigation"}),children:e.map(e=>(0,t.jsxs)("section",{"aria-labelledby":`nav-group-${e.id}`,children:[(0,t.jsx)("div",{id:`nav-group-${e.id}`,className:w,role:"presentation",children:v[e.id]}),(0,t.jsx)("ul",{className:"space-y-1",children:e.items.map(e=>{let r=L[e.icon],c=x[e.id],u="/"===e.href?"/"===s:s===e.href||s.startsWith(`${e.href}/`),m=e.isNew&&(n||d)?`${c} (${o.i18n._({id:"isRobC",message:"New"})})`:void 0,f=n?"hidden":d?"hidden xl:inline-flex":"inline-flex";return(0,t.jsx)("li",{children:(0,t.jsxs)(i.default,{href:a(e.href),prefetch:!1,onClick:l,"aria-current":u?"page":void 0,"aria-label":m,title:n||d?m??c:void 0,className:`group flex h-10 items-center rounded-lg text-sm font-medium transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary ${u?"bg-primary/15 text-primary-light":"text-white/70 hover:bg-white/8 hover:text-white"} ${y}`,children:[e.iconSrc?(0,t.jsx)("img",{src:e.iconSrc,alt:"",loading:"lazy",decoding:"async",className:"h-5 w-5 shrink-0 object-contain"}):(0,t.jsx)(r,{size:19,stroke:1.9,"aria-hidden":"true",className:"shrink-0"}),(0,t.jsx)("span",{className:`${b} truncate`,children:c}),e.isNew&&(0,t.jsx)("span",{className:`${f} motion-safe:animate-pulse rounded-full bg-primary/15 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-primary-light`,children:o.i18n._({id:"isRobC",message:"New"})})]})},e.id)})})]},e.id))})}),u.length>=1&&(0,t.jsxs)("div",{className:"relative border-t border-white/10 p-3",ref:g,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>h(!p),"aria-expanded":p,"aria-label":o.i18n._({id:"k/sb6z",message:"Select language"}),title:n||d?o.i18n._({id:"k/sb6z",message:"Select language"}):void 0,className:`group flex h-10 w-full items-center rounded-lg text-sm font-medium text-white/70 transition hover:bg-white/8 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary ${y}`,children:[(0,t.jsx)(m,{size:19,stroke:1.9,"aria-hidden":"true",className:"shrink-0"}),(0,t.jsx)("span",{className:`${b} truncate`,children:c})]}),p&&(0,t.jsx)("div",{className:"absolute bottom-full left-3 z-50 mb-2 grid max-h-[50vh] w-max min-w-[240px] grid-cols-2 gap-2 overflow-y-auto rounded-xl border border-white/5 bg-background/90 p-3 shadow-2xl backdrop-blur-xl",children:u.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{h(!1),f(e.key)},className:"flex w-full items-center justify-center rounded-lg px-3 py-2 text-center text-sm font-medium text-white transition-all duration-200 hover:bg-primary/20 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary",children:e.name},e.key))})]})]})}function S({pricingHref:e,pricingActive:n,isAuthenticated:a,userName:s,userImage:l,userCredit:d,onSignIn:u,onSignOut:m}){let[f,p]=(0,r.useState)(!1),h=(0,r.useRef)(null);return(0,r.useEffect)(()=>
1{if(!f)return;let e=e=>{let t=e.target;h.current&&!h.current.contains(t)&&p(!1)},t=e=>{"Escape"===e.key&&p(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[f]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:e,"aria-current":n?"page":void 0,title:o.i18n._({id:"aHCEmh",message:"Pricing"}),className:`inline-flex h-10 items-center gap-2 rounded-lg px-2.5 text-sm font-medium transition hover:bg-white/8 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary sm:px-3 ${n?"bg-primary/15 text-primary-light":"text-white/75"}`,children:[(0,t.jsx)(c,{size:19,"aria-hidden":"true"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:o.i18n._({id:"aHCEmh",message:"Pricing"})})]}),a?(0,t.jsxs)("div",{className:"relative",ref:h,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>p(!f),title:s||o.i18n._({id:"AeXO77",message:"Account"}),"aria-expanded":f,className:"inline-flex h-10 max-w-48 items-center gap-2 rounded-lg px-2.5 text-sm font-medium text-white/80 transition hover:bg-white/8 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary sm:px-3",children:[l?(0,t.jsx)("img",{src:l,alt:"",loading:"lazy",decoding:"async",referrerPolicy:"no-referrer",className:"h-7 w-7 shrink-0 rounded-full object-cover ring-1 ring-white/10"}):(0,t.jsx)("span",{className:"grid h-7 w-7 shrink-0 place-items-center rounded-full bg-primary/20 text-xs font-bold text-primary-light",children:s.slice(0,1).toUpperCase()||"M"}),(0,t.jsxs)("span",{className:"hidden min-w-0 flex-col items-start sm:flex",children:[(0,t.jsx)("span",{className:"truncate leading-tight",children:s||o.i18n._({id:"AeXO77",message:"Account"})}),(0,t.jsx)("span",{className:"truncate text-xs font-normal leading-tight text-primary-light",children:o.i18n._({id:"AiQy6j",message:"Credits: {userCredit}",values:{userCredit:d}})})]})]}),f&&(0,t.jsxs)("div",{className:"absolute right-0 top-12 z-50 min-w-[220px] rounded-xl border border-white/5 bg-background/90 p-3 shadow-2xl backdrop-blur-xl",children:[(0,t.jsxs)("div",{className:"mb-2 border-b border-white/10 pb-2",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-white",children:s||o.i18n._({id:"AeXO77",message:"Account"})}),(0,t.jsx)("p",{className:"text-xs font-medium text-primary-light",children:o.i18n._({id:"AiQy6j",message:"Credits: {userCredit}",values:{userCredit:d}})})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{p(!1),m()},className:"flex w-full items-center rounded-lg px-3 py-2 text-left text-sm font-medium text-white/80 transition hover:bg-white/8 hover:text-white",children:o.i18n._({id:"paehRh",message:"Log Out"})})]})]}):(0,t.jsxs)("button",{type:"button",onClick:u,className:"inline-flex h-10 items-center gap-2 rounded-lg bg-primary px-3 text-sm font-semibold text-background transition hover:brightness-110 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-light",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"+"}),(0,t.jsx)("span",{children:o.i18n._({id:"n1ekoW",message:"Sign In"})})]})]})}e.s(["default",()=>P],10272)},52584,e=>{"use strict";var t=e.i(43476),r=e.i(14063),i=e.i(18566);function n({children:e}){let n=(0,i.usePathname)(),[a]=(0,r.default)(n);return"/checkout"===a?null:(0,t.jsx)(t.Fragment,{children:e})}e.s(["default",()=>n])},11458,e=>{"use strict";let t=null;var r=e.i(11733),i=e.i(71645);let n=(0,i.createContext)({isNative:!0,open:function(e,t){d(e,e=>l(e,t))},useHref:e=>e});function a(e){let{children:t,navigate:r,useHref:a}=e,s=(0,i.useMemo)(()=>({isNative:!1,open:(e,t,i,n)=>{d(e,e=>{o(e,t)?r(i,n):l(e,t)})},useHref:a||(e=>e)}),[r,a]);return i.default.createElement(n.Provider,{value:s},t)}function s(){return(0,i.useContext)(n)}function o(e,t){let r=e.getAttribute("target");return(!r||"_self"===r)&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function l(e,i,n=!0){var a,s;let{metaKey:o,ctrlKey:d,altKey:c,shiftKey:u}=i;(0,r.isFirefox)()&&(null==(s=window.event)||null==(a=s.type)?void 0:a.startsWith("key"))&&"_blank"===e.target&&((0,r.isMac)()?o=!0:d=!0);let m=(0,r.isWebKit)()&&(0,r.isMac)()&&!(0,r.isIPad)()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:d,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:o,ctrlKey:d,altKey:c,shiftKey:u,bubbles:!0,cancelable:!0});if(l.isOpening=n,function(){if(null==t){t=!1;try{document.createElement("div").focus({get preventScroll(){return t=!0,!0}})}catch{}}return t}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&r.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:i}of e)t.scrollTop=r,t.scrollLeft=i}(t)}e.dispatchEvent(m),l.isOpening=!1}function d(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function c(e){var t;let r=s().useHref(null!=(t=null==e?void 0:e.href)?t:"");return{href:(null==e?void 0:e.href)?r:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}l.isOpening=!1,e.s(["RouterProvider",()=>a,"shouldClientNavigate",()=>o,"useLinkProps",()=>c,"useRouter",()=>s],11458)},39417,e=>{"use strict";var t=e.i(43476),r=e.i(21406),i=e.i(79387),n=e.i(3986),a=(0,i.tv)({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...n.dataFocusVisibleClasses],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focu
1s:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),s=e.i(69080),o=e.i(50179),l=e.i(11458),d=e.i(11733),c=e.i(72759),u=e.i(69443),m=e.i(43027),f=e.i(75768),p=e.i(34205),h=e.i(34921),g=e.i(29427),v=e.i(71199),x=e.i(77538),y=e.i(71645),b=e=>
1(0,t.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,t.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,t.jsx)("path",{d:"M15 3h6v6"}),(0,t.jsx)("path",{d:"M10 14L21 3"})]}),w=(0,f.forwardRef)((e,r)=>{let{Component:i,children:n,showAnchorIcon:w,anchorIcon:k=(0,t.jsx)(b,{className:"flex mx-1 text-current self-center"}),getLinkProps:j}=function(e){var t,r,i,n;let b=(0,p.useProviderContext)(),[w,k]=(0,f.mapPropsVariants)(e,a.variantKeys),{ref:j,as:E,children:C,anchorIcon:N,isExternal:L=!1,showAnchorIcon:P=!1,autoFocus:T=!1,className:S,onPress:M,onPressStart:A,onPressEnd:_,onClick:R,...$}=w,I=(0,h.useDOMRef)(j),O=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==b?void 0:b.disableAnimation)&&r,{linkProps:D}=function(e,t){let{elementType:r="a",onPress:i,onPressStart:n,onPressEnd:a,onClick:f,role:p,isDisabled:h,...g}=e,v={};"a"!==r&&(v={role:"link",tabIndex:h?void 0:0});let x=(0,d.isIOS)()||(0,d.isAndroid)();f&&"function"==typeof f&&"button"!==p&&(0,c.warn)("onClick is deprecated, please use onPress instead. See: https://github.com/nextui-org/nextui/issues/4292","useLink");let{focusableProps:y}=(0,u.useFocusable)(e,t),{pressProps:b,isPressed:w}=(0,m.usePress)({onPress:e=>{x&&(null==f||f(e)),null==i||i(e)},onPressStart:n,onPressEnd:a,isDisabled:h,ref:t}),k=(0,s.filterDOMProps)(g,{labelable:!0,isLink:"a"===r}),j=(0,o.mergeProps)(y,b),E=(0,l.useRouter)(),C=(0,l.useLinkProps)(e);return{isPressed:w,linkProps:(0,o.mergeProps)(k,C,{...j,...v,"aria-disabled":h||void 0,"aria-current":e["aria-current"],onClick:t=>{var r;null==(r=b.onClick)||r.call(b,t),!x&&f&&f(t),!E.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&(0,l.shouldClientNavigate)(t.currentTarget,t)&&e.href&&(t.preventDefault(),E.open(t.currentTarget,t,e.href,e.routerOptions))}})}}({...$,onPress:M,onPressStart:A,onPressEnd:_,onClick:R,isDisabled:e.isDisabled,elementType:`${E}`},I),{isFocused:F,isFocusVisible:K,focusProps:z}=(0,g.useFocusRing)({autoFocus:T});L&&($.rel=null!=(i=$.rel)?i:"noopener noreferrer",$.target=null!=(n=$.target)?n:"_blank");let H=(0,y.useMemo)(()=>a({...k,disableAnimation:O,className:S}),[(0,x.objectToDeps)(k),O,S]);return{Component:E||"a",children:C,anchorIcon:N,showAnchorIcon:P,getLinkProps:(0,y.useCallback)(()=>({ref:I,className:H,"data-focus":(0,v.dataAttr)(F),"data-disabled":(0,v.dataAttr)(e.isDisabled),"data-focus-visible":(0,v.dataAttr)(K),...(0,o.mergeProps)(z,D,$)}),[H,F,K,z,D,$])}}({ref:r,...e});return(0,t.jsx)(i,{...j(),children:(0,t.jsxs)(t.Fragment,{children:[n,w&&k]})})});w.displayName="NextUI.Link";var k=e.i(18566),j=e.i(14063),E=e.i(57992),C=e.i(54421);function N({params:e}){let i=Object.keys(r.default),n=(0,k.usePathname)(),[a]=(0,j.default)(n),s=(0,E.getPageLocales)(a.replace(/^\/+/,"")),o=s?i.filter(e=>s.includes(e)):i;return s?.length===1?null:(0,t.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-8 gap-2",children:o.map(i=>{let n="en"!==i?`/${i}${"/"!==a?a:""}`:a;return(0,t.jsx)("div",{children:(0,t.jsx)(w,{className:e?.lang===i?"text-primary-200 w-1/7":"w-1/7 text-gray-500 hover:text-primary-200",onClick:e=>{e.preventDefault(),(0,C.syncLocaleCookie)(i),window.location.assign(n)},href:n,children:r.default[i]})},i)})})}var L=e.i(58101),P=e.i(79175);e.s(["default",0,({params:e})=>{let r=(0,k.usePathname)(),[i]=(0,j.default)(r),n=(0,E.getPageLocales)(i.replace(/^\/+/,"")),a=!n||n.length>1;return(0,t.jsx)("footer",{className:"md:pt-22 pt-10 mt-8 bg-background/95 backdrop-blur-sm border-t border-white/10 px-4 md:px-0",children:(0,t.jsxs)("div",{className:"app-page app-page--gallery text-white/70 items-center gap-16 md:grid-cols-2 md:gap-24",children:[a&&(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsx)(N,{params:e})}),(0,t.jsxs)("div",{className:"mt-2 py-10 border-t border-white/10 flex-row-reverse items-center justify-between sm:flex",children:[(0,t.jsxs)("div",{className:"flex justify-center items-center",children:[(0,t.jsx)("a",{href:`${e?.lang!=="en"?`/${e?.lang}`:""}/about/privacy-policy`,className:"mr-5 text-white/70 hover:text-primary transition-colors",children:L.i18n._({id:"ScJ9fj",message:"Privacy policy"})}),(0,t.jsx)("a",{href:`${e?.lang!=="en"?`/${e?.lang}`:""}/about/terms-of-service`,className:"text-white/70 hover:text-primary transition-colors",children:L.i18n._({id:"UCLeG0",message:"Terms of service"})})]}),(0,t.jsxs)("p",{className:"mt-6 sm:mt-0 text-white/60",children:["© ",new Date().getFullYear()," ",P.siteConfig.name," All rights reserved."]})]})]})})}],39417)},67585,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let i=e.r(32061);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new i.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},9885,(e,t,r)=>{"use strict";function i(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return i}})},52157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return l}});let i=e.r(43476),n=e.r(74080),a=e.r(63599),s=e.r(9885),o=e.r(43369);function l({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let i=t.reactLoadableManifest;for(let t of e){if(!i[t])continue;let e=i[t].files;r.push(...e)}}if(0===r.length)return null;let l=(0,o.getDeploymentIdQueryOrEmptyString)();return(0,i.jsx)(i.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${l}`;return e.endsWith(".css")?(0,i.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return d}});let i=e.r(43476),n=e.r(71645),a=e.r(67585),s=e.r(52157);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},d=function(e){let t={...l,...e},r=(0,n.lazy)(()=>t.loader().then(o)),d=t.loading;function c(e){let o=d?(0,i.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,c=l?n.Suspense:n.Fragment,u=t.ssr?(0,i.jsxs)(i.Fragment,{children:["u"<typeof window?(0,i.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,i.jsx)(r,{...e})]}):(0,i.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,i.jsx)(r,{...e})});return(0,i.jsx)(c,{...l?{fallback:o}:{},children:u})}return c.displayName="LoadableComponent",c}},70703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}});let i=e.r(55682)._(e.r(69093));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,i.default)({...n,modules:n.loadableGenerated?.modules})}("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)},59835,e=>{"use strict";var t=e.i(43476),r=e.i(78274),i=e.i(71645),n=e.i(87457),a=e.i(95303);let s=(0,e.i(70703).default)(()=>e.A(34230).then(e=>e.I18nProvider),{loadableGenerated:{modules:[13297]},ssr:!0}),o=({children:e})=>{let{i18n:n}=(0,r.useLingui)();console.log("WatchLocale",n.locale);let a=n.locale?n.locale:"en";return(0,t.jsx)(i.Fragment,{children:e},a)},l=({i18n:e,children:r})=>{var l;let d,{locale:c}=e;return l=e._i18nPropsNamespace,d=(0,a.selectFirstAcceptedLocale)(c,a.AVAILABLE_LOCALES.en),(0,i.useMemo)(()=>{l||console.error("No internationalization context have been found."),l&&d!==l.initialLocale&&console.error(`The loaded locale from the "getStaticProps()" and the one from the NextJs router does not match. NextJs router "${c}". Active locale "${d}". Loaded "${l.initialLocale}"`),(0,n.activateLocale)(n.globalI18n,(0,a.isAcceptedLocale)(c)?c:a.DEFAULT_LOCALE,l.initialMessages)},[]),(0,i.useEffect)(()=>{l||console.error("No internationalization context have been found."),l&&d!==l.initialLocale&&console.error(`The loaded locale from the "getStaticProps()" and the one from the NextJs router does not match. NextJs router "${c}". Active locale "${d}". Loaded "${l.initialLocale}"`),(0,n.activateLocale)(n.globalI18n,(0,a.isAcceptedLocale)(c)?c:a.DEFAULT_LOCALE,l.initialMessages)},[c]),(0,t.jsx)(s,{i18n:n.globalI18n,children:(0,t.jsx)(o,{children:r})})};var d=e.i(34205);
1let c=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),u=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function m(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return c.has(t.script)}let t=e.split("-")[0];return u.has(t)}var f=e.i(54453);let p=Symbol.for("react-aria.i18n.locale");function h(){let e="u">typeof window&&window[p]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:m(e)?"rtl":"ltr"}}let g=h(),v=new Set;function x(){for(let e of(g=h(),v))e(g)}let y=i.default.createContext(null);function b(e){let{locale:t,children:r}=e,n=function(){let e=(0,f.useIsSSR)(),[t,r]=(0,i.useState)(g);return((0,i.useEffect)(()=>(0===v.size&&window.addEventListener("languagechange",x),v.add(r),()=>{v.delete(r),0===v.size&&window.removeEventListener("languagechange",x)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}(),a=i.default.useMemo(()=>t?{locale:t,direction:m(t)?"rtl":"ltr"}:n,[n,t]);return i.default.createElement(y.Provider,{value:a},r)}var w=e.i(11458),k=e.i(5344),j=e.i(37806),E=e.i(98125),C=e.i(47414);function N({children:e,isValidProp:r,...n}){r&&(0,E.loadExternalIsValidProp)(r),(n={...(0,i.useContext)(j.MotionConfigContext),...n}).isStatic=(0,C.useConstant)(()=>n.isStatic);let a=(0,i.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return(0,t.jsx)(j.MotionConfigContext.Provider,{value:a,children:e})}var L=e.i(45046),P=({children:e,navigate:r,disableAnimation:n,useHref:a,disableRipple:s=!1,skipFramerMotionAnimations:o=n,reducedMotion:l="never",validationBehavior:c,locale:u="en-US",defaultDates:m,createCalendar:f,...p})=>{let h=e;r&&(h=(0,t.jsx)(w.RouterProvider,{navigate:r,useHref:a,children:h}));let g=(0,i.useMemo)(()=>(n&&o&&(L.MotionGlobalConfig.skipAnimations=!0),{createCalendar:f,defaultDates:m,disableAnimation:n,disableRipple:s,validationBehavior:c}),[f,null==m?void 0:m.maxDate,null==m?void 0:m.minDate,n,s,c]);return(0,t.jsx)(d.ProviderContext,{value:g,children:(0,t.jsx)(b,{locale:u,children:(0,t.jsx)(N,{reducedMotion:l,children:(0,t.jsx)(k.OverlayProvider,{...p,children:h})})})})},T=e.i(26732),S=["light","dark"],M="(prefers-color-scheme: dark)",A="u"<typeof window,_=i.createContext(void 0),R=e=>i.useContext(_)?e.children:i.createElement(I,{...e}),$=["light","dark"],I=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:a="theme",themes:s=$,defaultTheme:o=r?"system":"light",attribute:l="data-theme",value:d,children:c,nonce:u})=>{let[m,f]=i.useState(()=>D(a,o)),[p,h]=i.useState(()=>D(a)),g=d?Object.values(d):s,v=i.useCallback(e=>{let i=e;if(!i)return;"system"===e&&r&&(i=K());let a=d?d[i]:i,s=t?F():null,c=document.documentElement;if("class"===l?(c.classList.remove(...g),a&&c.classList.add(a)):a?c.setAttribute(l,a):c.removeAttribute(l),n){let e=S.includes(o)?o:null,t=S.includes(i)?i:e;c.style.colorScheme=t}null==s||s()},[]),x=i.useCallback(e=>{let t="function"==typeof e?e(e):e;f(t);try{localStorage.setItem(a,t)}catch(e){}},[e]),y=i.useCallback(t=>{h(K(t)),"system"===m&&r&&!e&&v("system")},[m,e]);i.useEffect(()=>{let e=window.matchMedia(M);return e.addListener(y),y(e),()=>e.removeListener(y)},[y]),i.useEffect(()=>{let e=e=>{e.key!==a||x(e.newValue||o)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[x]),i.useEffect(()=>{v(null!=e?e:m)},[e,m]);let b=i.useMemo(()=>({theme:m,setTheme:x,forcedTheme:e,resolvedTheme:"system"===m?p:m,themes:r?[...s,"system"]:s,systemTheme:r?p:void 0}),[m,x,e,p,r,s]);return i.createElement(_.Provider,{value:b},i.createElement(O,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:n,storageKey:a,themes:s,defaultTheme:o,attribute:l,value:d,children:c,attrs:g,nonce:u}),c)},O=i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:s,value:o,attrs:l,nonce:d})=>{let c="system"===s,u="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${l.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,m=a?(S.includes(s)?s:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(e,t=!1,i=!0)=>{let n=o?o[e]:e,s=t?e+"|| ''":`'${n}'`,l="";return a&&i&&!t&&S.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?t||n?l+=`c.add(${s})`:l+="null":n&&(l+=`d[s](n,${s})`),l},p=e?`!function(){${u}${f(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${M}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${c?"":"else{"+f(s,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${m}}catch(t){}}();`;
1return i.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:p}})}),D=(e,t)=>{let r;if(!A){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},F=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},K=e=>(e||(e=window.matchMedia(M)),e.matches?"dark":"light");function z({children:e}){let{data:r}=(0,T.useSession)(),n=r?.user;return(0,i.useEffect)(()=>{!n?.blacklisted||window.location.pathname.endsWith("/account-disabled")||window.location.replace("/account-disabled")},[n?.blacklisted]),(0,t.jsx)(t.Fragment,{children:e})}function H({children:e,params:r,session:i}){return(0,t.jsx)(f.SSRProvider,{children:(0,t.jsx)(T.SessionProvider,{...i?{session:i}:{},children:(0,t.jsx)(z,{children:(0,t.jsx)(P,{locale:r.i18n.locale,children:(0,t.jsx)(R,{defaultTheme:"dark",children:(0,t.jsx)(l,{i18n:r.i18n,children:e})})})})})})}e.s(["Providers",()=>H],59835)},34863,e=>{"use strict";var t=e.i(43476),r=e.i(20682),i=e.i(71645),n=e.i(74080),a=e.i(81140),s=e.i(20783),o=e.i(75830),l=e.i(30030),d=e.i(26330),c=e.i(74606),u=e.i(96626),m=e.i(48425),f=e.i(30207),p=e.i(69340),h=e.i(34620),g=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),v=i.forwardRef((e,r)=>(0,t.jsx)(m.Primitive.span,{...e,ref:r,style:{...g,...e.style}}));v.displayName="VisuallyHidden";var x="ToastProvider",[y,b,w]=(0,o.createCollection)("Toast"),[k,j]=(0,l.createContextScope)("Toast",[w]),[E,C]=k(x),N=e=>{let{__scopeToast:r,label:n="Notification",duration:a=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:l}=e,[d,c]=i.useState(null),[u,m]=i.useState(0),f=i.useRef(!1),p=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${x}\`. Expected non-empty \`string\`.`),(0,t.jsx)(y.Provider,{scope:r,children:(0,t.jsx)(E,{scope:r,label:n,duration:a,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:d,onViewportChange:c,onToastAdd:i.useCallback(()=>m(e=>e+1),[]),onToastRemove:i.useCallback(()=>m(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:l})})};N.displayName=x;var L="ToastViewport",P=["F8"],T="toast.viewportPause",S="toast.viewportResume",M=i.forwardRef((e,r)=>{let{__scopeToast:n,hotkey:a=P,label:o="Notifications ({hotkey})",...l}=e,c=C(L,n),u=b(n),f=i.useRef(null),p=i.useRef(null),h=i.useRef(null),g=i.useRef(null),v=(0,s.useComposedRefs)(r,g,c.onViewportChange),x=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=c.toastCount>0;i.useEffect(()=>{let e=e=>{0!==a.length&&a.every(t=>e[t]||e.code===t)&&g.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),i.useEffect(()=>{let e=f.current,t=g.current;if(w&&e&&t){let r=()=>{if(!c.isClosePausedRef.current){let e=new CustomEvent(T);t.dispatchEvent(e),c.isClosePausedRef.current=!0}},i=()=>{if(c.isClosePausedRef.current){let e=new CustomEvent(S);t.dispatchEvent(e),c.isClosePausedRef.current=!1}},n=t=>{e.contains(t.relatedTarget)||i()},a=()=>{e.contains(document.activeElement)||i()};return e.addEventListener("focusin",r),e.addEventListener("focusout",n),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",a),window.addEventListener("blur",r),window.addEventListener("focus",i),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",n),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",r),window.removeEventListener("focus",i)}}},[w,c.isClosePausedRef]);let k=i.useCallback(({tabbingDirection:e})=>{let t=u().map(t=>{let r=t.ref.current,i=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===e?i:i.reverse()});return("forwards"===e?t.reverse():t).flat()},[u]);return i.useEffect(()=>{let e=g.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){let r=document.activeElement,i=t.shiftKey;if(t.target===e&&i)return void p.current?.focus();let n=k({tabbingDirection:i?"backwards":"forwards"}),a=n.findIndex(e=>e===r);q(n.slice(a+1))?t.preventDefault():i?p.current?.focus():h.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[u,k]),(0,t.jsxs)(d.Branch,{ref:f,role:"region","aria-label":o.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&(0,t.jsx)(_,{ref:p,onFocusFromOutsideViewport:()=>{q(k({tabbingDirection:"forwards"}))}}),(0,t.jsx)(y.Slot,{scope:n,children:(0,t.jsx)(m.Primitive.ol,{tabIndex:-1,...l,ref:v})}),w&&(0,t.jsx)(_,{ref:h,onFocusFromOutsideViewport:()=>{q(k({tabbingDirection:"backwards"}))}})]})});M.displayName=L;var A="ToastFocusProxy",_=i.forwardRef((e,r)=>{let{__scopeToast:i,onFocusFromOutsideViewport:n,...a}=e,s=C(A,i);return(0,t.jsx)(v,{tabIndex:0,...a,ref:r,style:{position:"fixed"},onFocus:e=>{let t=e.relatedTarget;s.viewport?.contains(t)||n()}})});_.displayName=A;var R="Toast",$=i.forwardRef((e,r)=>{let{forceMount:i,open:n,defaultOpen:s,onOpenChange:o,...l}=e,[d,c]=(0,p.useControllableState)({prop:n,defaultProp:s??!0,onChange:o,caller:R});return(0,t.jsx)(u.Presence,{present:i||d,children:(0,t.jsx)(D,{open:d,...l,ref:r,onClose:()=>c(!1),onPause:(0,f.useCallbackRef)(e.onPause),onResume:(0,f.useCallbackRef)(e.onResume),onSwipeStart:(0,a.composeEventHandlers)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,a.composeEventHandlers)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)}),onSwipeCancel:(0,a.composeEventHandlers)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,a.composeEventHandlers)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),c(!1)})})})});$.displayName=R;var[I,O]=k(R,{onClose(){}}),D=i.forwardRef((e,r)=>{let{__scopeToast:o,type:l="foreground",duration:c,open:u,onClose:p,onEscapeKeyDown:h,onPause:g,onResume:v,onSwipeStart:x,onSwipeMove:b,onSwipeCancel:w,onSwipeEnd:k,...j}=e,E=C(R,o),[N,L]=i.useState(null),P=(0,s.useComposedRefs)(r,e=>L(e)),M=i.useRef(null),A=i.useRef(null),_=c||E.duration,$=i.useRef(0),O=i.useRef(_),D=i.useRef(0),{onToastAdd:K,onToastRemove:z}=E,H=(0,f.useCallbackRef)(()=>{N?.contains(document.activeElement)&&E.viewport?.focus(),p()}),U=i.useCallback(e=>
1{e&&e!==1/0&&(window.clearTimeout(D.current),$.current=new Date().getTime(),D.current=window.setTimeout(H,e))},[H]);i.useEffect(()=>{let e=E.viewport;if(e){let t=()=>{U(O.current),v?.()},r=()=>{let e=new Date().getTime()-$.current;O.current=O.current-e,window.clearTimeout(D.current),g?.()};return e.addEventListener(T,r),e.addEventListener(S,t),()=>{e.removeEventListener(T,r),e.removeEventListener(S,t)}}},[E.viewport,_,g,v,U]),i.useEffect(()=>{u&&!E.isClosePausedRef.current&&U(_)},[u,_,E.isClosePausedRef,U]),i.useEffect(()=>(K(),()=>z()),[K,z]);let B=i.useMemo(()=>N?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var i;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(i=t).nodeType===i.ELEMENT_NODE){let i=t.ariaHidden||t.hidden||"none"===t.style.display,n=""===t.dataset.radixToastAnnounceExclude;if(!i)if(n){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(N):null,[N]);return E.viewport?(0,t.jsxs)(t.Fragment,{children:[B&&(0,t.jsx)(F,{__scopeToast:o,role:"status","aria-live":"foreground"===l?"assertive":"polite",children:B}),(0,t.jsx)(I,{scope:o,onClose:H,children:n.createPortal((0,t.jsx)(y.ItemSlot,{scope:o,children:(0,t.jsx)(d.Root,{asChild:!0,onEscapeKeyDown:(0,a.composeEventHandlers)(h,()=>{E.isFocusedToastEscapeKeyDownRef.current||H(),E.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,t.jsx)(m.Primitive.li,{tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":E.swipeDirection,...j,ref:P,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{"Escape"===e.key&&(h?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(E.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:(0,a.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(M.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,a.composeEventHandlers)(e.onPointerMove,e=>{if(!M.current)return;let t=e.clientX-M.current.x,r=e.clientY-M.current.y,i=!!A.current,n=["left","right"].includes(E.swipeDirection),a=["left","up"].includes(E.swipeDirection)?Math.min:Math.max,s=n?a(0,t):0,o=n?0:a(0,r),l="touch"===e.pointerType?10:2,d={x:s,y:o},c={originalEvent:e,delta:d};i?(A.current=d,X("toast.swipeMove",b,c,{discrete:!1})):J(d,E.swipeDirection,l)?(A.current=d,X("toast.swipeStart",x,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(M.current=null)}),onPointerUp:(0,a.composeEventHandlers)(e.onPointerUp,e=>{let t=A.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),A.current=null,M.current=null,t){let r=e.currentTarget,i={originalEvent:e,delta:t};J(t,E.swipeDirection,E.swipeThreshold)?X("toast.swipeEnd",k,i,{discrete:!0}):X("toast.swipeCancel",w,i,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),E.viewport)})]}):null}),F=e=>{let{__scopeToast:r,children:n,...a}=e,s=C(R,r),[o,l]=i.useState(!1),[d,u]=i.useState(!1);return function(e=()=>{}){let t=(0,f.useCallbackRef)(e);(0,h.useLayoutEffect)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>l(!0)),i.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),d?null:(0,t.jsx)(c.Portal,{asChild:!0,children:(0,t.jsx)(v,{...a,children:o&&(0,t.jsxs)(t.Fragment,{children:[s.label," ",n]})})})},K=i.forwardRef((e,r)=>{let{__scopeToast:i,...n}=e;return(0,t.jsx)(m.Primitive.div,{...n,ref:r})});K.displayName="ToastTitle";var z=i.forwardRef((e,r)=>{let{__scopeToast:i,...n}=e;return(0,t.jsx)(m.Primitive.div,{...n,ref:r})});z.displayName="ToastDescription";var H="ToastAction",U=i.forwardRef((e,r)=>{let{altText:i,...n}=e;return i.trim()?(0,t.jsx)(W,{altText:i,asChild:!0,children:(0,t.jsx)(V,{...n,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${H}\`. Expected non-empty \`string\`.`),null)});U.displayName=H;var B="ToastClose",V=i.forwardRef((e,r)=>{let{__scopeToast:i,...n}=e,s=O(B,i);return(0,t.jsx)(W,{asChild:!0,children:(0,t.jsx)(m.Primitive.button,{type:"button",...n,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,s.onClose)})})});V.displayName=B;var W=i.forwardRef((e,r)=>{let{__scopeToast:i,altText:n,...a}=e;return(0,t.jsx)(m.Primitive.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:r})});function X(e,t,r,{discrete:i}){let n=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),i?(0,m.dispatchDiscreteCustomEvent)(n,a):n.dispatchEvent(a)}var J=(e,t,r=0)=>{let i=Math.abs(e.x),n=Math.abs(e.y),a=i>n;return"left"===t||"right"===t?a&&i>r:!a&&n>r};function q(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var G=e.i(25913),Y=e.i(37727),Q=e.i(47163);let Z=i.forwardRef(({className:e,...r},i)=>(0,t.jsx)(M,{ref:i,className:(0,Q.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...r}));Z.displayName=M.displayName;let ee=(0,G.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-red-500 bg-red-600/95 backdrop-blur-sm text-white shadow-xl"}},defaultVariants:{variant:"default"}}),et=i.forwardRef(({className:e,variant:r,...i},n)=>(0,t.jsx)($,{ref:n,className:(0,Q.cn)(ee({variant:r}),e),...i}));et.displayName=$.displayName,i.forwardRef(({className:e,...r},i)=>(0,t.jsx)(U,{ref:i,className:(0,Q.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...r})).displayName=U.displayName;let er=i.forwardRef(({className:e,...r},i)=>(0,t.jsx)(V,{ref:i,className:(0,Q.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground
1/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-white/80 group-[.destructive]:hover:text-white group-[.destructive]:focus:ring-white/50 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...r,children:(0,t.jsx)(Y.X,{className:"h-4 w-4"})}));er.displayName=V.displayName;let ei=i.forwardRef(({className:e,...r},i)=>(0,t.jsx)(K,{ref:i,className:(0,Q.cn)("text-sm font-semibold",e),...r}));ei.displayName=K.displayName;let en=i.forwardRef(({className:e,...r},i)=>(0,t.jsx)(z,{ref:i,className:(0,Q.cn)("text-sm opacity-90",e),...r}));function ea(){let{toasts:e}=(0,r.useToast)();return(0,t.jsxs)(N,{children:[e.map(function({id:e,title:r,description:i,action:n,...a}){return(0,t.jsxs)(et,{...a,children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[r&&(0,t.jsx)(ei,{children:r}),i&&(0,t.jsx)(en,{children:i})]}),n,(0,t.jsx)(er,{})]},e)}),(0,t.jsx)(Z,{})]})}en.displayName=z.displayName,e.s(["Toaster",()=>ea],34863)},68891,e=>{"use strict";var t=e.i(71645),r=e.i(25642);e.s(["default",0,()=>((0,t.useEffect)(()=>(0,r.deferThirdParty)("google-one-tap",()=>{if(document.getElementById("google-gsi"))return;let e=document.createElement("script");e.id="google-gsi",e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.onload=()=>{window.dispatchEvent(new Event("google-one-tap-loaded"))},document.head.appendChild(e)}),[]),null)])},26532,e=>{"use strict";var t=e.i(71645),r=e.i(25642);e.s(["default",0,({clarityId:e})=>((0,t.useEffect)(()=>(0,r.deferThirdParty)(`clarity:${e}`,()=>{if(document.getElementById("microsoft-clarity-init"))return;let t=document.createElement("script");t.id="microsoft-clarity-init",t.async=!0,t.src=`https://www.clarity.ms/tag/${e}`,document.head.appendChild(t)}),[e]),null)])},44251,e=>{"use strict";var t=e.i(71645),r=e.i(25642);e.s(["default",0,({projectKey:e})=>((0,t.useEffect)(()=>(0,r.deferThirdParty)(`makethisbetter:${e}`,()=>{if(document.getElementById("make-this-better-lib"))return;let t=document.createElement("script");t.id="make-this-better-lib",t.async=!0,t.src="https://unpkg.com/makethisbetter@1",t.onload=()=>{window.MakeThisBetter?.init({projectKey:e})},document.head.appendChild(t)}),[e]),null)])},14695,e=>{"use strict";var t=e.i(43476);e.i(47167);var r=e.i(71645),i=e.i(26732);e.s(["default",0,()=>{let{isLoading:e}=(e=>{let{parentContainerId:t}=e||{},[n,a]=(0,r.useState)(!1),s=(0,r.useRef)(!1),o=(0,r.useRef)(!1),l=(0,r.useRef)(!1),{status:d}=(0,i.useSession)({required:!0,onUnauthenticated(){if(n)return;let r=()=>{let r=window.google?.accounts?.id;if(!r)return!1;let n=(()=>{let e=window.crypto;if(!e||"function"!=typeof e.getRandomValues)return;let t=new Uint8Array(16);return e.getRandomValues(t),Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")})();if(s.current||(s.current=!0,r.initialize({client_id:"880996321841-e9u6bj7k8i0j3c1cnhp2e4r7v3eke8hs.apps.googleusercontent.com",callback:async t=>{a(!0);try{await (0,i.signIn)("googleonetap",{credential:t.credential,redirect:!0,...e})}finally{a(!1)}},prompt_parent_id:t,use_fedcm_for_prompt:!0,nonce:n})),!o.current){o.current=!0;try{r.prompt()}catch(e){console.error("[OneTap] prompt failed",e)}}return!0};r()||l.current||(l.current=!0,window.addEventListener("google-one-tap-loaded",()=>{l.current=!1,r()},{once:!0}))}});return{isLoading:n}})({parentContainerId:"oneTap"});return(0,t.jsx)("div",{id:"oneTap",className:"fixed top-0 right-0 "})}],14695)},30564,e=>{"use strict";var t=e.i(71645),r=e.i(26732),i=e.i(58249);function n(){let{data:e,status:n}=(0,r.useSession)();return(0,t.useEffect)(()=>{if("authenticated"===n&&e?.user)try{if(sessionStorage.getItem("ma_auth_tracked"))return;sessionStorage.setItem("ma_auth_tracked","1");let t=e.user.createdAt,r="number"==typeof t&&Date.now()/1e3-t<600;(0,i.trackEvent)(r?"sign_up":"login")}catch{}},[n,e]),null}e.s(["default",()=>n])},27769,e=>{"use strict";var t=e.i(71645),r=e.i(26732);let i="ma_source";function n(e){let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null}function a(){let{data:e,status:a}=(0,r.useSession)();return(0,t.useEffect)(()=>{try{var e;let t;if(n(i))return;let r=new URLSearchParams(window.location.search),a={referrer:document.referrer||null,landing:window.location.pathname+window.location.search,utm_source:r.get("utm_source"),utm_medium:r.get("utm_medium"),utm_campaign:r.get("utm_campaign")};e=JSON.stringify(a),t=new Date(Date.now()+15552e6).toUTCString(),document.cookie=`${i}=${encodeURIComponent(e)}; expires=${t}; path=/; SameSite=Lax`}catch{}},[]),(0,t.useEffect)(()=>
1{if("authenticated"!==a||!e?.user)return;let t=e.user.id;if(t)try{let e=`ma_source_reported_${t}`;if(localStorage.getItem(e))return;let r=n(i);if(!r)return;let a=JSON.parse(r);fetch("/api/user/source",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then(t=>{t.ok&&localStorage.setItem(e,"1")}).catch(()=>{})}catch{}},[a,e]),null}e.s(["default",()=>a])}]);

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.