1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,741315,e=>{"use strict";var r=e.i(474831),t=(0,r.createServerReference)("601a7d11e11b89bd5b7779844388bfc839e32d76e2",r.callServer,void 0,r.findSourceMapURL,"getImageSignedUrl");e.s(["getImageSignedUrl",()=>t])},258221,e=>{"use strict";var r=e.i(260293),t=e.i(809528),a=e.i(741315),l=e.i(975157);function s({path:s,alt:n="Image",className:i="",fullscreen:o=!1,fullscreenButton:d,layout:c="chat",loading:u="lazy",preResolvedUrl:m}){let[f,x]=(0,t.useState)(!1),[p,h]=(0,t.useState)(!1),[g,b]=(0,t.useState)(m||null),v=(0,t.useRef)(null),y=s.startsWith("http://")||s.startsWith("https://"),j=y&&s.includes("auth.xotic.ai/storage/v1/object/sign/collections/");if((0,t.useEffect)(()=>{if(h(!1),m)return void b(m);let r=!1;return(async()=>{if(j)b((0,l.getCharacterMediaUrl)(s));else if(y)b(s);else try{let t=(0,l.getCachedUrl)(s,l.CACHE_CONFIG.IMAGE_PREFIX);if(t)return void b(t);let n=await (0,a.getImageSignedUrl)(s);if(r)return;let i=n;if(!i.success||!i.data?.signedUrl){let{getPublicWorldsSignedUrl:r}=await e.A(554394);i=await r(s)}if(i.success&&i.data?.signedUrl){let e=i.data.signedUrl;b(e),(0,l.cacheUrl)(s,e,l.CACHE_CONFIG.IMAGE_PREFIX)}else console.error("Failed to get signed URL:",i.error??n.error),h(!0)}catch(e){if(r)return;console.error("Error getting signed URL:",e),h(!0)}})(),()=>{r=!0}},[s,y,j,m]),(0,t.useEffect)(()=>{let e=v.current;e&&!f&&!p&&e.complete&&(e.naturalWidth>0?x(!0):h(!0))},[g,f,p]),!g&&!p)return o?(0,r.jsx)("div",{className:"flex h-[90vh] w-[90vw] items-center justify-center",children:(0,r.jsx)("div",{className:"h-16 w-16 animate-spin rounded-full border-b-2 border-t-2 border-primary"})}):"feed"===c?(0,r.jsx)("div",{className:`flex h-full w-full items-center justify-center bg-muted/20 ${i}`,children:(0,r.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-primary"})}):"flexible"===c?(0,r.jsx)("div",{className:`flex items-center justify-center bg-muted/20 ${i}`,children:(0,r.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-primary"})}):(0,r.jsx)("div",{className:`flex min-h-[200px] items-center justify-center rounded-xl bg-background/80 backdrop-blur-sm ${i}`,style:{width:"auto",maxWidth:"100%"},children:(0,r.jsx)("div",{className:"h-12 w-12 animate-spin rounded-full border-b-2 border-t-2 border-primary"})});let N=(0,l.toCdnMediaUrl)(g),w=()=>{x(!0),h(!1)},S=()=>{h(!0),x(!1)};return!g||f||p?p?o?(0,r.jsx)("div",{className:"flex h-[90vh] w-[90vw] items-center justify-center",children:(0,r.jsx)("div",{className:"text-lg text-red-400",children:"Failed to load image"})}):"feed"===c?(0,r.jsx)("div",{className:`flex h-full w-full items-center justify-center bg-muted/10 ${i}`,children:(0,r.jsx)("div",{className:"text-xs text-red-500",children:"Failed to load image"})}):"flexible"===c?(0,r.jsx)("div",{className:`flex items-center justify-center bg-muted/10 ${i}`,children:(0,r.jsx)("div",{className:"text-xs text-red-500",children:"Failed to load image"})}):(0,r.jsx)("div",{className:`flex min-h-[200px] items-center justify-center rounded-xl bg-muted/10 ${i}`,style:{width:"auto",maxWidth:"100%"},children:(0,r.jsx)("div",{className:"text-xs text-red-500",children:"Failed to load image"})}):g&&f?o?(0,r.jsxs)("div",{className:"relative flex h-[90vh] w-[90vw] items-center justify-center",children:[(0,r.jsx)("img",{src:N,alt:n,loading:u,className:"max-h-full max-w-full object-contain select-none",style:{userSelect:"none"},onLoad:w,onError:S,onContextMenu:e=>e.preventDefault(),onDragStart:e=>e.preventDefault(),draggable:!1}),d&&(0,r.jsx)("div",{className:"absolute right-4 top-4",children:d})]}):"feed"===c?(0,r.jsx)("img",{src:N,alt:n,loading:u,className:`h-full w-full object-cover select-none ${i}`,style:{userSelect:"none"},onLoad:w,onError:S,onContextMenu:e=>e.preventDefault(),onDragStart:e=>e.preventDefault(),draggable:!1}):"flexible"===c?(0,r.jsx)("img",{src:N,alt:n,loading:u,className:`object-contain select-none ${i}`,style:{userSelect:"none"},onLoad:w,onError:S,onContextMenu:e=>e.preventDefault(),onDragStart:e=>e.preventDefault(),draggable:!1}):(0,r.jsx)("img",{src:N,alt:n,loading:u,className:`h-auto max-h-[500px] w-auto rounded-xl object-contain select-none ${i}`,style:{width:"auto",maxWidth:"100%",userSelect:"none",display:"block"},onLoad:w,onError:S,onContextMenu:e=>e.preventDefault(),onDragStart:e=>e.preventDefault(),draggable:!1}):null:o?(0,r.jsxs)("div",{className:"flex h-[90vh] w-[90vw] items-center justify-center",children:[(0,r.jsx)("div",{className:"h-16 w-16 animate-spin rounded-full border-b-2 border-t-2 border-primary"}),(0,r.jsx)("img",{ref:v,src:N,alt:"",onLoad:w,onError:S,style:{display:"none"}})]}):"feed"===c?(0,r.jsxs)("div",{className:`flex h-full w-full items-center justify-center bg-muted/20 ${i}`,children:[(0,r.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-primary"}),(0,r.jsx)("img",{ref:v,src:N,alt:"",onLoad:w,onError:S,style:{display:"none"}})]}):"flexible"===c?(0,r.jsxs)("div",{className:`flex items-center justify-center bg-muted/20 ${i}`,children:[(0,r.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-primary"}),(0,r.jsx)("img",{ref:v,src:N,alt:"",onLoad:w,onError:S,style:{display:"none"}})]}):(0,r.jsxs)("div",{className:`flex min-h-[200px] items-center justify-center rounded-xl bg-background/80 backdrop-blur-sm ${i}`,style:{width:"auto",maxWidth:"100%"},children:[(0,r.jsx)("div",{className:"h-12 w-12 animate-spin rounded-full border-b-2 border-t-2 border-primary"}),(0,r.jsx)("img",{ref:v,src:N,alt:"",onLoad:w,onError:S,style:{display:"none"}})]})}e.s(["StorageImage",()=>s])},998763,972134,239386,782197,e=>{"use strict";e.s([],972134),e.s([],998763);var r=e.i(474831),t=(0,r.createServerReference)("78b7f76473ead60a9a0983514af9bde2c5066242d7",r.callServer,void 0,r.findSourceMapURL,"generateImage");e.s(["generateImage",()=>t],239386);var a=(0,r.createServerReference)("40a2a062d818402e15c90e3bfad19d371a9b553f0c",r.callServer,void 0,r.findSourceMapURL,"refundImageGenerationTokens");e.s(["refundImageGenerationTokens",()=>a],782197)},483817,e=>{"use strict";var r=e.i(474831),t=(0,r.createServerReference)("7f9d98424086d3d4a1f14fefca6d0612c2521bb7f6",r.callServer,void 0,r.findSourceMapURL,"generateGalleryImage");e.s(["generateGalleryImage",()=>t])},232410,739256,874595,e=>{"use strict";var r=e.i(809528);e.i(998763),e.i(972134);var t=e.i(239386);e.i(782197),e.i(483817);var a=e.i(474831);a.callServer,a.findSourceMapURL;var l=(0,a.createServerReference)("701a89b3c99239d8e3594aa7bf5848e9dab322fe3b",a.callServer,void 0,a.findSourceMapURL,"getGalleryImages"),s=(0,a.createServerReference)("40e9d247265fcfb713076066e927b02a7219a19744",a.callServer,void 0,a.findSourceMapURL,"deleteGalleryImage");a.callServer,a.findSourceMapURL;var n=e.i(741315),i=(0,a.createServerReference)("60575a677a97baba1142e890537eb6b51294647442",a.callServer,void 0,a.findSourceMapURL,"getPublicImageSignedUrl"),o=(0,a.createServerReference)("603c69c776ad4d7ee5bbf0c40e80cc6f798298a9fe",a.callServer,void 0,a.findSourceMapURL,"getBatchPublicImageSignedUrls");e.s(["getBatchPublicImageSignedUrls",()=>o],739256),a.callServer,a.findSourceMapURL,a.callServer,a.findSourceMapURL,a.callServer,a.findSourceMapURL,a.callServer,a.findSourceMapURL,a.callServer,a.findSourceMapURL,a.callServer,a.findSourceMapURL,a.callServer,a.findSourceMapURL;var d=(0,a.createServerReference)("406859a50955dc447f388d2d00318cc54b73a2278b",a.callServer,void 0,a.findSourceMapURL,"unlockImage");e.s(["deleteGalleryImage",()=>s,"generateImage",()=>t.generateImage,"getBatchPublicImageSignedUrls",()=>o,"getGalleryImages",()=>l,"getImageSignedUrl",()=>n.getImageSignedUrl,"getPublicImageSignedUrl",()=>i,"unlockImage",()=>d],874595);var n=n,c=e.i(975157);let u=new Map;function m(e,r){let t=u.get(e);return t||(t=r().finally(()=>u.delete(e)),u.set(e,t)),t}function f(e,t=c.CACHE_CONFIG.IMAGE_PREFIX){let[a,l]=(0,r.useState)(null),[s,i]=(0,r.useState)(!0),[o,d]=(0,r.useState)(null),u=(0,r.useCallback)(async(r=()=>!1)=>
1{if(!e){d("No storage key provided"),i(!1);return}try{i(!0),d(null),l(null);let a=(0,c.getCachedUrl)(e,t);if(a){l((0,c.toCdnMediaUrl)(a)),i(!1);return}let s=await m(`priv:${t}${e}`,()=>(0,n.getImageSignedUrl)(e));if(r())return;let o=s.data?.signedUrl;s.success&&o?(l((0,c.toCdnMediaUrl)(o)),(0,c.cacheUrl)(e,o,t)):d(s.error||"Failed to load image")}catch(e){if(r())return;console.error("Error loading image:",e),d("Error loading image")}finally{r()||i(!1)}},[e,t]);return(0,r.useEffect)(()=>{let r=!1;return e?u(()=>r):(d("No storage key provided"),i(!1)),()=>{r=!0}},[e,t,u]),{imageUrl:a,isLoading:s,error:o,retry:()=>{u()}}}function x(e,t=c.CACHE_CONFIG.IMAGE_PREFIX){let[a,l]=(0,r.useState)(null),[s,n]=(0,r.useState)(!0),[o,d]=(0,r.useState)(null),u=(0,r.useCallback)(async(r=()=>!1)=>{if(!e){d("No storage key provided"),n(!1);return}try{n(!0),d(null),l(null);let a=(0,c.getCachedUrl)(e,t);if(a){l((0,c.toCdnMediaUrl)(a)),n(!1);return}let s=await m(`pub:${t}${e}`,()=>i(e));if(r())return;let o=s.data?.signedUrl;s.success&&o?(l((0,c.toCdnMediaUrl)(o)),(0,c.cacheUrl)(e,o,t)):d(s.error||"Failed to load image")}catch(e){if(r())return;console.error("Error loading public image:",e),d("Error loading image")}finally{r()||n(!1)}},[e,t]);return(0,r.useEffect)(()=>{let r=!1;return e?u(()=>r):(d("No storage key provided"),n(!1)),()=>{r=!0}},[e,t,u]),{imageUrl:a,isLoading:s,error:o,retry:()=>{u()}}}async function p(e,r=c.CACHE_CONFIG.IMAGE_PREFIX){let t={},a=[];for(let l of e){if(!l)continue;let e=(0,c.getCachedUrl)(l,r);e?t[l]=e:a.push(l)}if(0===a.length)return t;try{let e=await o(a);for(let[a,l]of Object.entries(e))t[a]=l,(0,c.cacheUrl)(a,l,r)}catch(e){console.error("Error batch loading images:",e)}return t}e.s(["fetchMultipleCachedImages",()=>p,"useCachedImage",()=>f,"usePublicCachedImage",()=>x],232410)},755170,152392,e=>{"use strict";var r=e.i(260293),t=e.i(809528),a=e.i(548136),l=e.i(975157);function s({threshold:e=.5,rootMargin:r="0px",enabled:a=!0}={}){let[l,n]=(0,t.useState)(!1),[i,o]=(0,t.useState)(!1),d=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!a||!d.current)return;let t=new IntersectionObserver(([e])=>{let r=e.isIntersecting;n(r),r&&!i&&o(!0)},{threshold:e,rootMargin:r});return t.observe(d.current),()=>{t.disconnect()}},[e,r,a,i]),{elementRef:d,isIntersecting:l,hasIntersected:i}}e.s(["useIntersectionObserver",()=>s],152392);var n=e.i(232410);e.s(["default",0,({modelName:e,altOverride:i,userId:o,userGeneratedImagePath:d,prefetchedImageUrl:c,alternateImageUrls:u,hoverCycleInterval:m=1500,autoCycle:f=!1,className:x="",onMouseEnter:p,onMouseLeave:h,coverImageFilename:g,videoFilename:b,isPublicCharacter:v=!1,priority:y=!1,prefetchedVideoUrl:j,primaryMediaType:N,onVideoPlayingChange:w,priorityVideo:S=!1,preloadVideo:k=!1})=>{let[C,I]=(0,t.useState)(!1),[M,U]=(0,t.useState)(!1),[E,R]=(0,t.useState)(!1),[P,$]=(0,t.useState)(0),[L,_]=(0,t.useState)(!1),O=!c&&d,{imageUrl:D,isLoading:F}=v?(0,n.usePublicCachedImage)(O?d:null):(0,n.useCachedImage)(O?d:null),A=c||D,z=(0,t.useRef)(null),T=(0,t.useRef)(null),[G,B]=(0,t.useState)(!1),[V,W]=(0,t.useState)(!1),H=null!=o,X=H&&!!d,{elementRef:K,isIntersecting:Y}=s({threshold:.6,rootMargin:"0px 0px -10% 0px",enabled:E});(0,t.useEffect)(()=>{R((0,l.isMobileDevice)())},[]),(0,t.useEffect)(()=>{A&&_(!1)},[A]),(0,t.useEffect)(()=>{if(!f||!u||0===u.length)return;let e=setTimeout(()=>{u.forEach(e=>{new window.Image().src=(0,l.getCharacterMediaUrl)(e)})},2e3);return()=>clearTimeout(e)},[f,u]);let[Z,q]=(0,t.useState)(f);(0,t.useEffect)(()=>{(f||C)&&q(!0)},[f,C]),(0,t.useEffect)(()=>{if("VIDEO"!==N||!j)return;if(!f&&!C){W(!1),w?.(!1);return}let e=setTimeout(()=>{W(!0)},2e3*!S);return()=>clearTimeout(e)},[N,j,f,C,S]),(0,t.useEffect)(()=>{if(!V||!T.current||!j)return;let e=T.current;f||C||E&&Y?e.play().then(()=>w?.(!0)).catch(e=>console.error("User video play error:",e)):(e.pause(),e.currentTime=0,B(!1),w?.(!1))},[V,f,C,E,Y,j]),(0,t.useEffect)(()=>{if(!((f||C)&&u&&u.length>0&&(f||X))){f||$(0);return}let e=setInterval(()=>{$(e=>(e+1)%(u.length+1))},m);return()=>clearInterval(e)},[C,u,m,X,f]),(0,t.useEffect)(()=>{E&&Y&&("VIDEO"===N&&j?W(!0):z.current&&z.current.play().then(()=>U(!0)).catch(e=>console.error("Video play error:",e)))},[E,Y,N,j]),(0,t.useEffect)(()=>{E&&!Y&&z.current&&(z.current.pause(),z.current.currentTime=0)},[E,Y]),(0,t.useEffect)(()=>{k&&j&&T.current&&"VIDEO"===N&&(T.current.preload="auto",T.current.load())},[k,j,N]),(0,t.useEffect)(()=>{H||!z.current||f&&S&&z.current.play().then(()=>{U(!0),w?.(!0)}).catch(e=>console.error("Video play error:",e))},[H,f,S]),(0,t.useEffect)(()=>{!H&&k&&z.current&&(z.current.preload="auto",z.current.load())},[H,k]);let Q=E?Y&&M:(C||f)&&M;return(0,r.jsx)("div",{ref:K,className:`relative ${x}`,onMouseEnter:()=>{I(!0),o||d||!z.current||z.current.play().then(()=>U(!0)).catch(e=>console.error("Video play error:",e)),p&&p()},onMouseLeave:()=>{I(!1),z.current&&(z.current.pause(),z.current.currentTime=0),T.current&&!f&&(T.current.pause(),T.current.currentTime=0),h&&h()},onContextMenu:e=>(e.preventDefault(),!1),children:H?(()=>
1{let t="VIDEO"===N?[A].filter(Boolean):[A,...u||[]].filter(Boolean);if(t.length>0&&!L){let a="VIDEO"===N&&G&&(f||C||E&&Y);return(0,r.jsxs)("div",{className:"relative h-full w-full",children:[t.map((t,a)=>{if(a>0&&!Z)return null;let s="VIDEO"===N||a===P;return(0,r.jsx)("img",{src:(0,l.getCharacterMediaUrl)(t),alt:i||e,loading:0===a&&y?"eager":"lazy",className:`absolute inset-0 h-full w-full select-none rounded-lg object-cover object-top transition-opacity duration-150 ease-in-out ${s?"opacity-100":"opacity-0"}`,draggable:"false",onContextMenu:e=>e.preventDefault(),onDragStart:e=>e.preventDefault(),onError:0===a?()=>_(!0):void 0,style:{userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",WebkitTouchCallout:"none"}},`${a}-${t}`)}),"VIDEO"===N&&j&&(0,r.jsx)("video",{ref:T,className:`absolute inset-0 h-full w-full select-none rounded-lg object-cover transition-opacity duration-300 ease-in-out ${a?"opacity-100":"opacity-0"}`,muted:!0,loop:!f,playsInline:!0,preload:"none",draggable:"false",onDragStart:e=>e.preventDefault(),onContextMenu:e=>e.preventDefault(),onPlaying:()=>B(!0),onEnded:()=>{B(!1),f&&w?.(!1)},children:(0,r.jsx)("source",{src:(0,l.getMediaVideoUrl)(j),type:"video/mp4"})})]})}return F?(0,r.jsx)("div",{className:"h-full w-full rounded-lg bg-gradient-to-br from-primary/10 via-pink-500/10 to-purple-500/10"}):(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-lg bg-gradient-to-br from-primary/10 via-pink-500/10 to-purple-500/10",children:(0,r.jsx)("span",{className:"text-lg font-semibold text-primary/60",children:e.charAt(0).toUpperCase()})})})():(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{src:(0,l.getModelCoverUrl)(e,g),alt:i||e,width:400,height:712,quality:85,loading:y?"eager":"lazy",priority:y,className:"h-full w-full rounded-lg object-cover opacity-100",draggable:"false",onDragStart:e=>e.preventDefault()}),b&&(0,r.jsx)("video",{ref:z,className:`absolute inset-0 h-full w-full rounded-lg object-cover ${Q?"opacity-100":"opacity-0"}`,muted:!0,loop:!f,playsInline:!0,preload:"none",draggable:"false",onDragStart:e=>e.preventDefault(),onEnded:()=>{f&&w?.(!1)},children:(0,r.jsx)("source",{src:(0,l.getModelVideoUrl)(e,b),type:"video/mp4"})})]})})}],755170)},753959,e=>{"use strict";var r=e.i(260293),t=e.i(799676),a=e.i(755170),l=e.i(975157);e.s(["ModelAvatar",0,({modelName:e,userId:s,userGeneratedImagePath:n,prefetchedImageUrl:i,size:o="md",className:d="",coverImageFilename:c,showOnlineIndicator:u=!1})=>{let m={sm:"h-8 w-8",md:"h-10 w-10",lg:"h-11 w-11",xl:"h-20 w-20"}[o],f={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5",xl:"h-3.5 w-3.5"}[o];return null!=s?(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:`${m} flex-shrink-0 overflow-hidden rounded-full border border-primary/20 ${d}`,children:(0,r.jsx)(a.default,{modelName:e,userId:s,userGeneratedImagePath:n,prefetchedImageUrl:i,className:"h-full w-full",priority:!0})}),u&&(0,r.jsx)("div",{className:"absolute bottom-0 right-0",children:(0,r.jsx)("div",{className:`${f} rounded-full bg-green-500 ring-2 ring-background`})})]}):(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)(t.Avatar,{className:`${m} flex-shrink-0 border border-primary/20 ${d}`,children:[(0,r.jsx)(t.AvatarImage,{className:"object-cover object-top",src:(0,l.getModelCoverUrl)(e,c),alt:e}),(0,r.jsx)(t.AvatarFallback,{className:"bg-primary/20",children:e.charAt(0)})]}),u&&(0,r.jsx)("div",{className:"absolute bottom-0 right-0",children:(0,r.jsx)("div",{className:`${f} rounded-full bg-green-500 ring-2 ring-background`})})]})}])},901844,e=>{"use strict";var r=e.i(809528);function t(){return(t=Object.assign.bind()).apply(this,arguments)}var a=["cdnSuffix","cdnUrl","countryCode","style","svg"];e.s(["default",0,function(e){var l=e.cdnSuffix,s=e.cdnUrl,n=e.countryCode,i=e.style,o=e.svg,d=function(e,r){if(null==e)return{};var t,a,l={},s=Object.keys(e);for(a=0;a<s.length;a++)t=s[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,a);if("string"!=typeof n)return null;if(void 0!==o&&o){var c=""+(void 0===s?"https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/":s)+n.toLowerCase()+"."+(void 0===l?"svg":l);return(0,r.createElement)("img",Object.assign({},d,{src:c,style:t({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},i)}))}var u=n.toUpperCase().replace(/./g,function(e){return String.fromCodePoint(e.charCodeAt(0)+127397)});return(0,r.createElement)("span",Object.assign({role:"img"},d,{style:t({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},i)}),u)}])},487486,e=>{"use strict";var r=e.i(260293),t=e.i(809528),a=e.i(294237),l=e.i(975157);let s=(0,a.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",trait:"border-transparent bg-gradient-to-r from-primary/90 via-primary/70 to-primary/90 text-primary-foreground shadow backdrop-blur-sm",showcase:"relative border border-primary/50 bg-black/40 text-white shadow-[0_0_10px_rgba(255,77,109,0.4)] backdrop-blur-md px-3 py-1 text-xs rounded-full overflow-hidden"}},defaultVariants:{variant:"default"}});function n({className:e,variant:t,...a}){return(0,r.jsx)("div",{className:(0,l.cn)(s({variant:t}),e),...a})}let i=t.forwardRef(({className:e,variant:t="showcase",...a},n)=>(0,r.jsx)("div",{ref:n,className:(0,l.cn)(s({variant:t}),"inline-flex items-center justify-center transition-all duration-300 hover:scale-105 hover:shadow-[0_0_15px_rgba(255,77,109,0.6)]",e),...a,children:a.children}));i.displayName="TraitBadge",e.s(["Badge",()=>n,"TraitBadge",()=>i])},145939,e=>{"use strict";var r=e.i(474831),t=(0,r.createServerReference)("403d3c11127557631dca3df212f207fa3d9ca4a7ab",r.callServer,void 0,r.findSourceMapURL,"getCharacterById");e.s(["getCharacterById",()=>t])},323031,e=>{"use strict";var r=e.i(260293),t=e.i(809528),a=e.i(487486);let l=({text:e,className:a=""})=>{let[l,s]=(0,t.useState)(!1),n=e.length>180;return(0,r.jsxs)("div",{className:`mt-1 ${a}`,children:[(0,r.jsx)("p",{className:`text-sm leading-relaxed text-foreground
1/85 ${l?"":"line-clamp-3"}`,children:e}),n&&(0,r.jsx)("button",{type:"button",onClick:()=>s(e=>!e),className:"mt-1.5 text-xs font-medium uppercase tracking-widest text-primary/80 transition-colors hover:text-primary",children:l?"Show less":"Read more"})]})};e.s(["default",0,({personality:e,size:t="large",maxTraits:s=3,className:n="",proseFallback:i="hide"})=>{if(!e)return null;if(!function(e){if(/[.!?;]/.test(e))return!1;let r=e.split(",").map(e=>e.trim()).filter(Boolean);return r.length>=2&&r.every(e=>e.length<=24)}(e))return"paragraph"===i?(0,r.jsx)(l,{text:e,className:n}):null;let o=e.split(",").map(e=>e.trim()).filter(Boolean).slice(0,s),d={small:"px-2 py-0.5 text-xs lg:px-1 lg:py-0.5 lg:text-[10px] xl:text-[11px]",large:"font-medium px-2.5 py-0.5 text-xs lg:px-1 lg:py-0.5 lg:text-[10px] xl:text-[11px]"};return(0,r.jsx)("div",{className:`mt-1 flex flex-wrap gap-2 lg:mt-0 lg:gap-px xl:gap-0.5 ${n}`,children:o.map((e,l)=>(0,r.jsx)(a.TraitBadge,{className:`border-primary/60 bg-gradient-to-r from-black/70 via-black/50 to-black/70 ${d[t]}`,style:{animationDelay:`${150*l}ms`,background:"linear-gradient(to right, rgba(0,0,0,0.7), rgba(30,30,30,0.5), rgba(0,0,0,0.7))",textShadow:"0 1px 2px rgba(0,0,0,0.8)"},children:e},l))})}])},493730,e=>{"use strict";var r=e.i(260293),t=e.i(901844);e.s(["default",0,({countryCode:e,size:a="large",className:l=""})=>(0,r.jsx)("div",{className:`${{small:"",medium:"",large:"absolute -top-3 left-[2px] z-10"}[a]} ${l}`,children:(0,r.jsx)("span",{className:`${{small:"text-base",medium:"text-2xl",large:"text-4xl"}[a]} inline-block overflow-hidden rounded-2xl rounded-bl-none`,children:(0,r.jsx)(t.default,{countryCode:e,svg:!0,style:"small"===a?{width:"18px",height:"18px"}:void 0})})})])},375803,e=>{"use strict";var r=e.i(260293);e.s(["default",0,({name:e,age:t,shortDescription:a,isNavigating:l=!1,className:s=""})=>{let n=e.split(" ")[0];return(0,r.jsxs)("div",{className:`absolute bottom-0 z-10 w-full bg-gradient-to-t from-neutral-950/75 to-transparent p-2 ${s}`,children:[(0,r.jsx)("div",{className:"flex flex-col gap-1 pr-14",children:(0,r.jsxs)("span",{className:`block w-full overflow-hidden text-ellipsis whitespace-nowrap font-sans text-white ${n.length>10?"text-2xl lg:text-lg xl:text-xl":"text-3xl lg:text-xl xl:text-2xl"}`,style:{textShadow:"0 2px 4px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.5)"},children:[n,t&&`, ${t}`]})}),a&&(0,r.jsx)("p",{className:"mt-1 line-clamp-2 text-sm text-white/90",style:{textShadow:"0 1px 3px rgba(0,0,0,0.9)"},children:a})]})}])},458694,154977,e=>{"use strict";var r=e.i(260293),t=e.i(809528),a=e.i(573817),l=e.i(707061),s=e.i(169512),n=e.i(550300),i=e.i(747313),o=e.i(807682),d=e.i(755170),c=e.i(375803),u=e.i(377608),m=e.i(477272),f=e.i(145939),x=e.i(493730),p=e.i(323031);let h=({isOpen:e,model:s,onClose:n,onChatClick:i})=>{let o=(0,l.useTranslations)("explore"),d=(0,a.useRouter)(),[c,h]=(0,t.useState)(()=>"string"==typeof s.persona.background?s:null);if((0,t.useEffect)(()=>{if(!e||c)return;let r=!1;
1return(0,f.getCharacterById)(s.id).then(e=>{!r&&e&&h(e)}).catch(()=>{}),()=>{r=!0}},[e,c,s.id]),!e)return null;let g={...s,persona:{...c?.persona??{},...s.persona}},b=c?.persona;return(0,r.jsxs)(u.motion.div,{initial:{x:"100%"},animate:{x:"0%"},exit:{x:"100%"},transition:{type:"spring",stiffness:250,damping:30},className:"absolute inset-0 z-30 flex flex-col bg-background/80 shadow-inner backdrop-blur-md dark:bg-neutral-950/80",children:[(0,r.jsx)("span",{className:"absolute right-[1px] top-[1px] z-40 cursor-pointer p-1 text-foreground",onClick:e=>{e.stopPropagation(),n()},children:(0,r.jsx)(m.X,{size:32})}),(0,r.jsxs)("div",{className:"no-scrollbar flex-1 overflow-y-auto p-4 pb-20",children:[(0,r.jsxs)("div",{className:"mb-3 border-b border-primary/20 pb-2",children:[(0,r.jsx)("div",{className:"flex items-start justify-between",children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-2xl font-medium text-primary",children:[g.name,(0,r.jsx)("span",{className:"ml-2",children:(0,r.jsx)(x.default,{countryCode:b?.countryCode??"",size:"small"})})]}),(0,r.jsxs)("p",{className:"text-sm font-medium text-primary/80",children:[g.persona.age," ⢠",g.persona.gender," â¢"," ",b?.nationality??""]})]})}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(p.default,{personality:g.persona.personality,size:"small"})})]}),(0,r.jsxs)("div",{className:"flex flex-col space-y-3 text-sm",children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h3",{className:"mb-2 text-base font-bold text-primary",children:o("about")}),g.persona.shortDescription&&(0,r.jsx)("p",{className:"mx-auto mb-3 text-sm leading-relaxed text-foreground/90 italic",children:g.persona.shortDescription}),(0,r.jsx)("p",{className:"mx-auto text-sm leading-relaxed text-foreground/90",children:b?.background??""})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-x-3 gap-y-2",children:[(0,r.jsx)("h3",{className:"col-span-2 mb-2 text-center text-base font-bold text-primary",children:o("physical")}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelEthnicity")," "]}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:b?.ethnicity??""})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelSkin")," "]}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:b?.skin??""})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelHair")," "]}),(0,r.jsxs)("span",{className:"text-sm text-foreground",children:[b?.hairColor??""," ",b?.hairStyle??""]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelEyes")," "]}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:b?.eyes??""})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelBodyType")," "]}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:b?.body??""})]}),g.persona.gender?.toLowerCase()!=="male"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelBreastSize")," "]}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:b?.breastSize??""})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelAssSize")," "]}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:b?.assSize??""})]})]}),b?.occupation&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelOccupation")," "]}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:b.occupation})]}),b?.kink&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-primary/80",children:[o("labelKinks")," "]}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:b.kink})]})]}),b?.hobbies&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"mb-2 text-center text-base font-bold text-primary",children:o("hobbies")}),(0,r.jsx)("p",{className:"text-sm text-foreground",children:b.hobbies})]})]})]}),i&&(0,r.jsx)("div",{className:"flex-shrink-0 mt-auto border-t border-primary/10",children:(0,r.jsxs)("button",{onClick:e=>{e.stopPropagation(),d.push(`/character/${g.id}`)},className:"bg-primary text-white py-2 w-full rounded-none text-sm font-medium transition-all duration-200 hover:bg-primary/90 shadow-sm flex items-center justify-center gap-1.5",children:[o("profilePage"),(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})]})};e.s(["default",0,h],154977);var g=e.i(737149);function b(e,r,t,a){let l=r;
1for(let r=0;r<e.length;r++)l=(l<<5)-l+e.charCodeAt(r)|0;return t+(l>>>0)%1e4/1e4*(a-t)}function v(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":Math.round(e).toString()}let y=(0,t.memo)(function({model:e,isNavigating:u=!1,onChatClick:m,altOverride:f,className:x="",disableHoverScale:p=!1,disableCardClick:y=!1,nameOverlayClassName:j,priority:N=!1,showShortDescription:w=!1,shortDescriptionLocation:S="on-card",isFeatured:k=!1,autoCycleImages:C=!1,onVideoPlayingChange:I,priorityVideo:M=!1,preloadVideo:U=!1}){let E=(0,l.useTranslations)("explore"),R=(0,a.useRouter)(),[P,$]=(0,t.useState)(!1),L=e=>{e&&e.stopPropagation(),$(!P)},_=async r=>{r.stopPropagation(),y||(m?m(e):R.push(`/character/${e.id}`))};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:`relative flex aspect-[1256/1836] h-full w-full overflow-hidden rounded-2xl shadow-white drop-shadow-xl transition-all ${p?"":"hover:scale-105"} ${u?"cursor-wait":y?"cursor-default":"cursor-pointer"} ${x}`,onMouseEnter:()=>{},onMouseLeave:()=>{},onClick:u?void 0:_,onContextMenu:e=>(e.preventDefault(),!1),style:{pointerEvents:u?"none":"auto"},children:[u&&(0,r.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,r.jsx)("div",{className:"mx-auto h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-primary"})}),(0,r.jsx)("div",{className:"h-full w-full",children:(0,r.jsx)(d.default,{modelName:e.name,altOverride:f,userId:e.userId,userGeneratedImagePath:"VIDEO"===e.primaryMediaType?(()=>{for(let r of e.persona?.alternateMediaIds||[]){let t=e.media?.find(e=>e.id===r&&"IMAGE"===e.type);if(t?.url)return t.url}return e.media?.find(e=>"IMAGE"===e.type)?.url||(e.media&&e.media.length>0?e.media[0].url:null)})():e.media&&e.media.length>0?(e.persona?.primaryMediaId?e.media.find(r=>r.id===e.persona?.primaryMediaId)?.url:e.media[0].url)||e.media[0].url:null,prefetchedImageUrl:e.prefetchedImageUrl,alternateImageUrls:e.prefetchedAlternateUrls,autoCycle:C,className:"h-full w-full",coverImageFilename:e.persona?.coverImageFilename,videoFilename:e.persona?.videoFilename,isPublicCharacter:e.isPublic,priority:N,prefetchedVideoUrl:e.prefetchedVideoUrl,primaryMediaType:e.primaryMediaType,onVideoPlayingChange:I,priorityVideo:M,preloadVideo:U})}),e.hasVault&&(0,r.jsx)("div",{className:"pointer-events-none absolute left-2 top-2 z-[25]",children:(0,r.jsxs)("div",{className:"relative overflow-hidden rounded-full bg-black/85 px-2.5 py-[3px] shadow-[0_2px_10px_rgba(0,0,0,0.65)] backdrop-blur-sm",children:[(0,r.jsx)(g.ShineBorder,{borderWidth:1.5,duration:10,shineColor:["#ec4899","#a855f7","#3b82f6","#22d3ee","#f59e0b"]}),(0,r.jsx)("span",{className:"bg-gradient-to-b from-white to-white/80 bg-clip-text text-[10px] font-semibold uppercase leading-none tracking-[0.22em] text-transparent",children:"Noir"})]})}),k&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-black/80 via-black/40 to-transparent z-[5]"}),(0,r.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 z-[15] px-3 py-3 flex items-end justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"text-xl sm:text-lg font-bold text-white",children:e.name}),(0,r.jsx)("span",{className:"text-sm sm:text-xs text-white/80",children:E("yearsOld",{age:e.persona.age})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(n.Heart,{className:"h-3.5 w-3.5 fill-red-500 text-red-500"}),(0,r.jsx)("span",{className:"text-xs text-white/90",children:v(b(e.id,42,5e3,99e3))})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(i.MessageCircle,{className:"h-3.5 w-3.5 fill-blue-400 text-blue-400"}),(0,r.jsx)("span",{className:"text-xs text-white/90",children:v(b(e.id,137,1e5,5e6))})]})]})]})]}),!k&&(0,r.jsx)(c.default,{name:e.name,personality:e.persona.personality,age:e.persona.age,shortDescription:w&&"on-card"===S?e.persona.shortDescription:void 0,isNavigating:u,className:j}),!k&&(0,r.jsx)("button",{type:"button","aria-label":E("about"),onClick:L,className:"absolute right-1 top-1 z-[25] flex h-8 w-8 items-center justify-center rounded-full bg-black/55 text-white shadow-md ring-1 ring-white/25 backdrop-blur-md transition-all duration-200 hover:scale-110 hover:bg-black/70",children:(0,r.jsx)(o.Info,{className:"h-[18px] w-[18px] drop-shadow-[0_1px_2px_rgba(0,0,0,0.8)]",strokeWidth:2.25})}),!k&&(0,r.jsx)(s.AnimatePresence,{children:P&&(0,r.jsx)(h,{isOpen:P,model:e,onClose:L,onChatClick:m})})]})})});e.s(["default",0,y],458694)},969474,404526,e=>{"use strict";e.i(260293),e.i(809528),e.i(548136),e.i(975157),e.i(152392),e.s([],969474),e.i(746798),e.s([],404526)},772436,e=>{"use strict";var r=e.i(260293),t=e.i(809528),a=e.i(413494),l="horizontal",s=["horizontal","vertical"],n=t.forwardRef((e,t)=>
1{var n;let{decorative:i,orientation:o=l,...d}=e,c=(n=o,s.includes(n))?o:l;return(0,r.jsx)(a.Primitive.div,{"data-orientation":c,...i?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...d,ref:t})});n.displayName="Separator";var i=e.i(975157);let o=t.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...l},s)=>(0,r.jsx)(n,{ref:s,decorative:a,orientation:t,className:(0,i.cn)("shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...l}));o.displayName=n.displayName,e.s(["Separator",()=>o],772436)},269406,560246,214619,e=>{"use strict";e.i(969474),e.i(755170),e.i(493730),e.i(404526),e.i(323031),e.i(375803),e.i(154977);var r=e.i(260293),t=e.i(377608),a=e.i(477272),l=e.i(367886),s=e.i(772436);e.s(["default",0,({isOpen:e,onClose:n})=>e?(0,r.jsxs)(t.motion.div,{className:"absolute inset-0 bottom-0 z-10 max-w-80 overflow-hidden rounded-lg bg-background/80 shadow-[0_0_20px_rgba(0,0,0,0.15)] backdrop-blur-md dark:bg-neutral-900/80",initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"100%"},transition:{duration:.3,ease:"easeOut"},children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-primary/20 px-4 py-4",children:[(0,r.jsx)("h3",{className:"text-xl font-semibold text-primary",children:"Settings"}),(0,r.jsx)("button",{className:"p-1 text-foreground/80 hover:text-foreground",onClick:n,children:(0,r.jsx)(a.X,{size:20})})]}),(0,r.jsxs)("div",{className:"no-scrollbar h-[calc(100%)] overflow-y-auto p-4 pb-20",children:[(0,r.jsxs)("button",{className:"group mb-3 flex w-full items-center justify-between rounded-xl bg-transparent px-2 py-3 text-sm font-medium text-primary hover:bg-primary/10",children:[(0,r.jsx)("span",{className:"text-left transition-transform duration-200 group-hover:scale-105",children:"History"}),(0,r.jsx)(l.ChevronRight,{size:18,className:"transition-transform duration-200 group-hover:scale-125"})]}),(0,r.jsx)(s.Separator,{className:"my-3 bg-primary/20"}),(0,r.jsxs)("button",{className:"group mb-3 flex w-full items-center justify-between rounded-xl bg-transparent px-2 py-3 text-sm font-medium text-primary hover:bg-primary/10",children:[(0,r.jsx)("span",{className:"text-left transition-transform duration-200 group-hover:scale-105",children:"Memories"}),(0,r.jsx)(l.ChevronRight,{size:18,className:"transition-transform duration-200 group-hover:scale-125"})]}),(0,r.jsx)(s.Separator,{className:"my-3 bg-primary/20"}),(0,r.jsxs)("button",{className:"group mb-3 flex w-full items-center justify-between rounded-xl bg-transparent px-2 py-3 text-sm font-medium text-primary hover:bg-primary/10",children:[(0,r.jsx)("span",{className:"text-left transition-transform duration-200 group-hover:scale-105",children:"Snippets"}),(0,r.jsx)(l.ChevronRight,{size:18,className:"transition-transform duration-200 group-hover:scale-125"})]}),(0,r.jsx)(s.Separator,{className:"my-3 bg-primary/20"}),(0,r.jsxs)("button",{className:"group mb-3 flex w-full items-center justify-between rounded-xl bg-transparent px-2 py-3 text-sm font-medium text-primary hover:bg-primary/10",children:[(0,r.jsx)("span",{className:"text-left transition-transform duration-200 group-hover:scale-105",children:"Gallery"}),(0,r.jsx)(l.ChevronRight,{size:18,className:"transition-transform duration-200 group-hover:scale-125"})]}),(0,r.jsx)(s.Separator,{className:"my-3 bg-primary/20"})]})]}):null],560246);var n=e.i(458694);e.s([],269406),e.s(["ModelCard",()=>n.default],214619)},337861,e=>{"use strict";var r=e.i(474831),t=(0,r.createServerReference)("40ff88de0a26654856505988d02adb5d2373a2f8d9",r.callServer,void 0,r.findSourceMapURL,"checkExistingChatWithModel");e.s(["checkExistingChatWithModel",()=>t])},305470,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return l}});let a=e.r(777845);function l({reason:e,children:r}){if("undefined"==typeof window)throw Object.defineProperty(new a.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}},174876,(e,r,t)=>{"use strict";function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return a}})},345811,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return i}});let a=e.r(260293),l=e.r(482480),s=e.r(357954),n=e.r(174876);function i({moduleIds:e}){if("undefined"!=typeof window)return null;let r=s.workAsyncStorage.getStore();if(void 0===r)return null;let t=[];if(r.reactLoadableManifest&&e){let a=r.reactLoadableManifest;for(let r of e){if(!a[r])continue;let e=a[r].files;t.push(...e)}}return 0===t.length?null:(0,a.jsx)(a.Fragment,{children:t.map(e=>{let t=`${r.assetPrefix}/_next/${(0,n.encodeURIPath)(e)}?dpl=dpl_ExLkMDjAs4t7iRuZaQBZLYYR9Prt`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style",nonce:r.nonce},e):((0,l.preload)(t,{as:"script",fetchPriority:"low",nonce:r.nonce}),null)})})}},646026,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let a=e.r(260293),l=e.r(809528),s=e.r(305470),n=e.r(345811);function i(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},d=function(e){let r={...o,...e},t=(0,l.lazy)(()=>r.loader().then(i)),d=r.loading;function c(e){let i=d?(0,a.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,o=!r.ssr||!!r.loading,c=o?l.Suspense:l.Fragment,u=r.ssr?(0,a.jsxs)(a.Fragment,{children:["undefined"==typeof window?(0,a.jsx)(n.PreloadChunks,{moduleIds:r.modules}):null,(0,a.jsx)(t,{...e})]}):(0,a.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(t,{...e})});return(0,a.jsx)(c,{...o?{fallback:i}:{},children:u})}return c.displayName="LoadableComponent",c}},348472,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let a=e.r(481258)._(e.r(646026));function l(e,r){let t={};"function"==typeof e&&(t.loader=e);let l={...t,...r};return(0,a.default)({...l,modules:l.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},304424,e=>{"use strict";var r=e.i(260293),t=e.i(822388),a=e.i(707061),l=e.i(317877),s=e.i(132786),n=e.i(753959),i=e.i(258221),o=e.i(746513),d=e.i(975157);let c=["from-teal-500/50 via-slate-800 to-slate-950","from-violet-500/50 via-slate-800 to-slate-950","from-amber-500/50 via-slate-800 to-slate-950","from-rose-500/50 via-slate-800 to-slate-950","from-sky-500/50 via-slate-800 to-slate-950","from-emerald-500/50 via-slate-800 to-slate-950"],u=e=>c[[...e].reduce((e,r)=>e+r.charCodeAt(0),0)%c.length],m={1:[{clip:"polygon(0 0, 100% 0, 100% 100%, 0 100%)",box:{top:0,left:0,width:100,height:100}}],2:[{clip:"polygon(0 0, 53.5% 0, 46.5% 100%, 0 100%)",box:{top:0,left:0,width:53.5,height:100}},{clip:"polygon(54.5% 0, 100% 0, 100% 100%, 47.5% 100%)",box:{top:0,left:46.5,width:53.5,height:100}}],3:[{clip:"polygon(0 0, 100% 0, 100% 42.5%, 0 49.5%)",box:{top:0,left:0,width:100,height:49}},{clip:"polygon(0 50.5%, 49.4% 47%, 49.4% 100%, 0 100%)",box:{top:48.5,left:0,width:49.4,height:51.5}},{clip:"polygon(50.6% 46.9%, 100% 43.5%, 100% 100%, 50.6% 100%)",box:{top:45,left:50.6,width:49.4,height:55}}],4:[{clip:"polygon(0 0, 49.4% 0, 49.4% 49%, 0 52.5%)",box:{top:0,left:0,width:49.4,height:52}},{clip:"polygon(50.6% 0, 100% 0, 100% 45.5%, 50.6% 49%)",box:{top:0,left:50.6,width:49.4,height:49}},{clip:"polygon(0 54.5%, 49.4% 51%, 49.4% 100%, 0 100%)",box:{top:52.5,left:0,width:49.4,height:47.5}},{clip:"polygon(50.6% 51%, 100% 47.5%, 100% 100%, 50.6% 100%)",box:{top:49,left:50.6,width:49.4,height:51}}]};function f({cast:e,seed:t,className:a,priority:l=!1}){let s=e.slice(0,4),n=m[Math.max(1,s.length)];return(0,r.jsxs)("div",{className:(0,d.cn)("relative overflow-hidden bg-slate-950",a),children:[0===s.length?(0,r.jsx)("div",{className:(0,d.cn)("absolute inset-0 bg-gradient-to-br",u(t))}
1):null,s.map((e,a)=>{let{clip:s,box:o}=n[a],c=0===o.top?"object-[50%_15%]":"object-top";return(0,r.jsx)("div",{className:"absolute inset-0",style:{clipPath:s},title:e.name?`${e.name} â ${e.role}`:e.role,children:(0,r.jsx)("div",{className:"absolute overflow-hidden",style:{top:`${o.top}%`,left:`${o.left}%`,width:`${o.width}%`,height:`${o.height}%`},children:e.avatarPath?(0,r.jsx)(i.StorageImage,{path:e.avatarPath,preResolvedUrl:e.avatarUrl??void 0,alt:e.name??e.role,layout:"flexible",loading:l?"eager":"lazy",className:(0,d.cn)("h-full w-full object-cover transition-transform duration-700 group-hover:scale-[1.04]",c)}):(0,r.jsx)("div",{className:(0,d.cn)("h-full w-full bg-gradient-to-br",u(`${t}${a}`))})})},`${e.role}-${a}`)})]})}function x({s:e,className:t}){let l=(0,a.useTranslations)("mp.scenario");return(0,r.jsxs)("div",{className:(0,d.cn)("flex flex-wrap items-center gap-1 font-mono text-[9px] uppercase tracking-wider sm:gap-1.5 sm:text-[10px]",t),children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-black/5 dark:bg-white/5 px-2 py-0.5 text-foreground ring-1 ring-black/10 dark:ring-white/10",children:[(0,r.jsx)("span",{className:(0,d.cn)("h-1.5 w-1.5 rounded-full",e.isSfw?"bg-emerald-400":"bg-rose-400")}),l(e.isSfw?"badgeSfw":"badgeNsfw")]}),(0,r.jsx)("span",{className:"rounded-full bg-black/5 dark:bg-white/5 px-2 py-0.5 text-muted-foreground ring-1 ring-black/10 dark:ring-white/10",children:l(e.isAnime?"badgeAnime":"badgeRealistic")}),e.isHouse?(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-teal-500/10 px-2 py-0.5 text-teal-800 dark:text-teal-200 ring-1 ring-teal-400/30",children:[(0,r.jsx)(s.Sparkles,{className:"h-2.5 w-2.5"})," ",l("badgeHouse")]}):null]})}function p({cast:e,size:t="sm",className:a}){return(0,r.jsx)("div",{className:(0,d.cn)("flex -space-x-2",a),children:e.slice(0,4).map((e,a)=>(0,r.jsx)("div",{className:"rounded-full ring-2 ring-slate-950",title:e.name?`${e.name} â ${e.role}`:e.role,children:(0,r.jsx)(n.ModelAvatar,{modelName:e.name??e.role,userId:e.modelUserId,userGeneratedImagePath:e.avatarPath??void 0,coverImageFilename:e.coverImageFilename??void 0,size:t})},`${e.role}-${a}`))})}function h({s:e}){let s=(0,a.useTranslations)("mp.scenario"),n=e.cast.length;return(0,r.jsxs)(t.default,{href:(0,o.scenarioPath)(e.slug),className:"group relative flex flex-col overflow-hidden rounded-2xl border border-black/10 dark:border-white/10 bg-card transition-all duration-300 hover:-translate-y-0.5 hover:border-teal-400/40 hover:shadow-xl hover:shadow-teal-500/10",children:[(0,r.jsx)("div",{className:"relative aspect-[3/4] w-full",children:(0,r.jsx)(f,{cast:e.cast,seed:e.slug,className:"absolute inset-0"})}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-2 p-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:gap-1.5",children:[(0,r.jsx)(x,{s:e}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-black/5 dark:bg-white/5 px-2 py-0.5 font-mono text-[9px] uppercase tracking-wider text-muted-foreground ring-1 ring-black/10 dark:ring-white/10 sm:text-[10px]",children:[(0,r.jsx)(l.Users,{className:"h-3 w-3"})," ",s("castCount",{count:n})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-mono text-base font-semibold leading-tight",children:e.title}),e.tagline?(0,r.jsx)("p",{className:"mt-1 line-clamp-2 text-xs text-muted-foreground",children:e.tagline}):null]}),(0,r.jsx)("ul",{className:"mt-auto flex flex-col gap-0.5 border-t border-black/5 dark:border-white/5 pt-2",children:e.cast.slice(0,4).map((e,t)=>(0,r.jsxs)("li",{className:"flex min-w-0 items-baseline gap-1.5 text-xs",children:[(0,r.jsx)("span",{className:"shrink-0 font-mono text-foreground",children:e.name??s("anyCharacter")}),(0,r.jsxs)("span",{className:"truncate text-muted-foreground",children:["· ",e.role]})]},`${e.role}-${t}`))})]})]})}e.s(["CastAvatars",()=>p,"CastMosaic",()=>f,"ScenarioBadges",()=>x,"ScenarioCard",()=>h])},302747,e=>{"use strict";var r=e.i(260293),t=e.i(975157);function a({className:e,...a}){return(0,r.jsx)("div",{className:(0,t.cn)("animate-pulse rounded-md bg-primary/10",e),...a})}e.s(["Skeleton",()=>a])},745446,e=>{"use strict";var r=e.i(474831),t=(0,r.createServerReference)("4049c2e6f2e6aa0705e6ffbd50a8aeeef9b49088f1",r.callServer,void 0,r.findSourceMapURL,"startVGFERelationship");e.s(["startVGFERelationship",()=>t])},66499,e=>{"use strict";var r=e.i(474831),t=(0,r.createServerReference)("7f67f72f00caa2c8a54d7d6434d7cf17a28fc02072",r.callServer,void 0,r.findSourceMapURL,"getExploreModelsPaginated");
1e.s(["getExploreModelsPaginated",()=>t])},423798,e=>{"use strict";var r=e.i(474831),t=(0,r.createServerReference)("40785462fcb077c7a351762c13324fa7825b0b3c05",r.callServer,void 0,r.findSourceMapURL,"getFeaturedModelsForCarousel");e.s(["getFeaturedModelsForCarousel",()=>t])},625764,e=>{e.v(r=>Promise.all(["static/chunks/ba081da1bee0d5b9.js"].map(r=>e.l(r))).then(()=>r(672758)))},337931,e=>{e.v(r=>Promise.all(["static/chunks/648d7c35dfcc71af.js"].map(r=>e.l(r))).then(()=>r(584138)))},532997,e=>{e.v(r=>Promise.all(["static/chunks/30bdca0831acd3e9.js"].map(r=>e.l(r))).then(()=>r(329825)))},554394,e=>{e.v(r=>Promise.all(["static/chunks/df320ba7fcbccb2f.js"].map(r=>e.l(r))).then(()=>r(189698)))},26991,e=>{e.v(r=>Promise.all(["static/chunks/7c42928c96a9b4d8.js"].map(r=>e.l(r))).then(()=>r(305878)))},803862,e=>{e.v(r=>Promise.all(["static/chunks/34c5d7d48a6c6791.js"].map(r=>e.l(r))).then(()=>r(288205)))},255447,e=>{e.v(r=>Promise.all(["static/chunks/c362550bdf1f9c95.js"].map(r=>e.l(r))).then(()=>r(476011)))}]);
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.