PageSourceSearch

https://frenchkiss.ai/_next/static/chunks/e1b6eba3c57dbf74.js

js frenchkiss.ai collected 2026-10-05 12:11:55 UTC 39,340 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="96638087-da25-8a5e-b0ab-b45b778db801")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,663022,e=>{"use strict";var t=e.i(589218),r=e.i(519455),s=e.i(515288),n=e.i(302747),i=e.i(520133),l=e.i(838621),a=e.i(770217),o=e.i(586419),u=e.i(472562),c=e.i(835847),d=e.i(676394),h=e.i(578984);e.s(["ModelCard",0,e=>{let n=(0,u.useTranslations)("models.card"),f=(0,i.useRouter)(),[m,p]=(0,h.useState)(!1),g=e.isFlipped??m,v=e.onFlipToggle??(()=>p(!m)),[y,x]=(0,h.useState)(!1),[b,S]=(0,h.useState)(!1),[w,j]=(0,h.useState)(!1),[_,N]=(0,h.useState)(!1),[k,O]=(0,h.useState)(e.model.attributes.coverUrl),R=(0,h.useRef)(!1),C=(0,h.useRef)(null),z=(0,h.useRef)(!1),I=e.model.attributes.title.split(","),M=I[0].trim(),T=I.slice(1).join(",").trim(),E=e.model.attributes.presentationVideo;return(0,h.useEffect)(()=>{E&&C.current&&!z.current&&(C.current.load(),C.current.oncanplaythrough=()=>{z.current=!0,S(!0)})},[E]),(0,h.useEffect)(()=>{y&&C.current&&b&&(j(!0),C.current.play().catch(()=>{}))},[y,b]),(0,h.useEffect)(()=>{let e=C.current;e&&(e.loop=y,!y&&e.ended&&(j(!1),e.currentTime=0))},[y]),(0,t.jsxs)("div",{className:"relative h-[300px] w-full sm:h-[350px] md:h-[400px]",children:[(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),v()}
2,"aria-label":n(g?"hideDetails":"showDetails"),className:"absolute top-2 right-2 z-50 rounded-full bg-white/10 p-2 backdrop-blur-sm transition-all hover:bg-white/20",children:(0,t.jsx)("div",{className:`transition-transform duration-500 ${g?"rotate-180":""}`,children:g?(0,t.jsx)(o.X,{className:"h-5 w-5 text-white"}):(0,t.jsx)(l.Info,{className:"h-5 w-5 text-white"})})}),(0,t.jsxs)("div",{className:`relative h-full w-full transition-all duration-500 [transform-style:preserve-3d] ${g?"[transform:rotateY(180deg)]":""}`,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),onTouchStart:()=>x(!0),onTouchEnd:()=>x(!1),children:[(0,t.jsxs)(s.Card,{className:"absolute h-full w-full gap-0 overflow-hidden border-0 bg-neutral-800 p-0 [backface-visibility:hidden]",onClick:()=>{(0,d.trackMediaEvent)("profile_click",e.model.id),f.push(`/models/${e.model.slug}`)},children:[(0,t.jsx)(c.default,{src:k,alt:e.model.attributes.title,fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 768px) 50vw, (max-width: 1024px) 33vw, 300px",quality:95,priority:e.priority,className:"object-cover",onError:()=>{R.current||(R.current=!0,O(`${e.model.attributes.coverUrl}?retry=${Date.now()}`))}}),e.model.attributes.presentationVideo&&(0,t.jsx)("video",{ref:C,src:e.model.attributes.presentationVideo,className:"absolute inset-0 h-full w-full object-cover transition-opacity duration-300",style:{opacity:w&&b?1:0},preload:"none",playsInline:!0,muted:!0,onEnded:()=>{!y&&(j(!1),C.current&&(C.current.pause(),C.current.currentTime=0))}}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 w-full p-2 text-white sm:p-6",children:[(0,t.jsxs)("h3",{className:"text-xl font-bold sm:text-2xl",style:{fontFamily:"var(--font-poppins)"},children:[e.model.searchData?.name??M,e.model.searchData?.age&&(0,t.jsxs)("span",{children:[" ",e.model.searchData.age]})]}),(0,t.jsx)("div",{className:"flex items-center gap-2 text-sm text-white/90",children:e.model.searchData?.city&&(0,t.jsxs)(t.Fragment,{children:[e.model.searchData.age&&"",(0,t.jsxs)("span",{className:"flex items-center gap-1 text-sm whitespace-nowrap",children:[(0,t.jsx)(a.MapPin,{className:"h-4 w-4"})," ",e.model.searchData.city]})]})}),e.model.attributes.tags&&e.model.attributes.tags.length>0&&(0,t.jsx)("div",{className:"flex gap-0.5 text-sm",children:e.model.attributes.tags.slice(0,3).map(e=>(0,t.jsxs)("span",{children:["#",e]},e))})]})]}),e.model.mood&&!_&&(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -top-3 -left-3 z-40 h-12 w-12 [backface-visibility:hidden] sm:h-14 sm:w-14",children:(0,t.jsx)("div",{className:`h-full w-full transition-transform duration-300 ease-out ${y?"scale-110":"scale-100"}`,style:{filter:"drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35))"},children:(0,t.jsx)("div",{className:"animate-mood-pulse h-full w-full",children:(0,t.jsx)(c.default,{src:e.model.mood.iconUrl,alt:e.model.mood.name,fill:!0,sizes:"56px",className:"object-contain",onError:()=>N(!0)})})})}),(0,t.jsx)(s.Card,{className:"absolute h-full w-full [transform:rotateY(180deg)] gap-0 overflow-hidden border-0 p-0 [backface-visibility:hidden]",children:(0,t.jsxs)("div",{className:"relative h-full w-full",children:[(0,t.jsx)(c.default,{src:k,alt:e.model.attributes.title,fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 768px) 50vw, (max-width: 1024px) 33vw, 300px",quality:60,className:"object-cover blur-sm brightness-50"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col p-3 text-white sm:p-4",children:[(0,t.jsxs)("div",{className:"min-h-0 flex-1 space-y-2 overflow-hidden",children:[(0,t.jsx)("div",{className:"flex items-start justify-between",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-lg font-bold sm:text-xl",style:{fontFamily:"var(--font-poppins)"},children:M}),T&&(0,t.jsx)("p",{className:"text-xs text-white/90 sm:text-sm",children:T})]})}),(0,t.jsx)("div",{className:"line-clamp-6 space-y-1.5 text-xs leading-snug text-white/90 sm:line-clamp-8 sm:text-sm",children:e.model.attributes.description?e.model.attributes.description.split("\n\n").filter(e=>e.trim()).map((e,r)=>(0,t.jsx)("p",{children:e.trim()},r)):null}),e.model.attributes.tags&&e.model.attributes.tags.length>0&&(0,t.jsx)("p",{className:"truncate text-xs text-white/80 sm:text-sm",children:e.model.attributes.tags.map(e=>`#${e}`).join(" ")})]}),(0,t.jsxs)("div",{className:"mt-2 flex flex-col gap-2",children:[(0,t.jsx)(i.Link,{href:`/models/${e.model.slug}/chat`,className:(0,r.buttonVariants)({size:"default",className:"bg-brand text-brand-foreground hover:bg-brand/90 w-full rounded-lg"}),onClick:e=>e.stopPropagation(),children:n("chat")}),(0,t.jsx)(i.Link,{href:`/models/${e.model.slug}`,className:(0,r.buttonVariants)({size:"default",variant:"outline",className:"w-full rounded-lg border-white/20 bg-white/10 text-white hover:bg-white/20"}),onClick:e=>e.stopPropagation(),children:n("viewProfile")})]})]})]})})]})]})},"ModelCardSkeleton",0,()=>(0,t.jsxs)(s.Card,{className:"relative h-[300px] w-full gap-0 overflow-hidden border-0 p-0 sm:h-[350px] md:h-[400px]",children:[(0,t.jsx)(n.Skeleton,{className:"h-full w-full"}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 w-full p-6",children:[(0,t.jsx)(n.Skeleton,{className:"mb-2 h-8 w-32"}),(0,t.jsx)(n.Skeleton,{className:"h-4 w-24"})]}),(0,t.jsx)("div",{className:"absolute top-2 right-2",children:(0,t.jsx)(n.Skeleton,{className:"h-9 w-9 rounded-full"})})]})])},774600,815142,29668,400318,e=>{"use strict";var t=e.i(462360);let r=(0,t.createServerReference)("401fc5cea0e3afff67e9bf8f12471871193cbe108e",t.callServer,void 0,t.findSourceMapURL,"getModelsWithPagination");e.s(["getModelsWithPagination",()=>r],774600);var s=e.i(589218);function n({models:e,currentPage:t,itemsPerPage:r,baseUrl:n}){let i={"@context":"https://schema.org","@type":"ItemList",itemListElement:e.map((e,s)=>{let i=`${n}/${e.slug}`;return{"@type":"ListItem",position:(t-1)*r+s+1,item:{"@type":"Person",name:e.searchData?.name??e.attributes.title,de
2scription:e.attributes.description,image:e.attributes.coverUrl,url:i,...e.searchData?.age&&{age:e.searchData.age},...e.searchData?.city&&{address:{"@type":"PostalAddress",addressLocality:e.searchData.city}},...e.searchData?.job&&{jobTitle:e.searchData.job},additionalType:e.searchData?.characterType??"AI Model",datePublished:e.attributes.date.toISOString(),keywords:e.attributes.keywords.join(", ")}}}),numberOfItems:e.length,itemListOrder:"https://schema.org/ItemListOrderDescending"};return(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}})}function i({currentPage:e,totalPages:t,baseUrl:r,totalItems:n,itemsPerPage:i=12}){let l=`${r}${e>1?`?page=${e}`:""}`,a=e>1?`${r}?page=${e-1}`:null,o=e<t?`${r}?page=${e+1}`:null;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:l}),a&&(0,s.jsx)("link",{rel:"prev",href:a}),o&&(0,s.jsx)("link",{rel:"next",href:o}),void 0!==n&&(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:`AI Models - Page ${e}`,description:`Browse AI models page ${e} of ${t}`,url:l,numberOfItems:n,itemListElement:{"@type":"ItemList",numberOfItems:i,itemListOrder:"https://schema.org/ItemListOrderDe
2scending"}})}})]})}e.s(["ModelStructuredData",()=>n],815142),e.s(["PaginationMeta",()=>i],29668);var l=e.i(812676);function a({currentPage:e,totalPages:t,baseUrl:r,totalItems:n}){let i=[];t>0&&i.push(1);for(let r=Math.max(2,e-2);r<=Math.min(t-1,e+2);r++)i.includes(r)||i.push(r);return t>1&&!i.includes(t)&&i.push(t),i.sort((e,t)=>e-t),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("nav",{"aria-label":"Pagination",className:"sr-only",children:(0,s.jsx)("ul",{children:i.map((t,n)=>{let a=n>0&&i[n-1]!==t-1;return(0,s.jsxs)("li",{children:[a&&(0,s.jsx)("span",{children:"..."}),(0,s.jsxs)(l.default,{href:`${r}${t>1?`?page=${t}`:""}`,"aria-label":`Go to page ${t}`,"aria-current":t===e?"page":void 0,children:["Page ",t]})]},t)})})}),void 0!==n&&(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"SearchResultsPage",name:"AI Models Directory",description:`Browse our collection of ${n} AI models`,url:r,mainEntity:{"@type":"ItemList",numberOfItems:n,itemListOrder:"https://schema.org/ItemListOrderDe
2scending"}})}}),(0,s.jsx)("link",{rel:"sitemap",type:"application/xml",href:"/sitemap.xml"})]})}e.s(["SEONavigation",()=>a],400318)},303769,e=>{"use strict";var t=e.i(589218),r=e.i(676394),s=e.i(2740),n=e.i(578984),i=e.i(672841),l=e.i(975157),a=e.i(835847);function o({modelName:e,imageUrl:r,hasUnseenStories:s,onClick:i,videoUrl:o}){let[u,c]=(0,n.useState)(!1),[d,h]=(0,n.useState)(!1);return(0,t.jsxs)("button",{onClick:i,className:"flex flex-shrink-0 flex-col items-center gap-1",children:[(0,t.jsx)("div",{className:(0,l.cn)("rounded-full p-[2px]",s?"bg-gradient-to-br from-red-600 via-red-500 to-orange-500":"bg-muted-foreground/30"),children:(0,t.jsx)("div",{className:"rounded-full bg-background p-[2px]",children:(0,t.jsxs)("div",{className:"relative size-16 overflow-hidden rounded-full md:size-[72px]",children:[r?(0,t.jsx)(a.default,{src:r,alt:e,fill:!0,className:"object-cover",sizes:"72px"}):(0,t.jsx)("div",{className:"bg-muted flex size-full items-center justify-center",children:(0,t.jsx)("span",{className:"text-muted-foreground text-lg font-bold",children:e.charAt(0).toUpperCase()})}),!!o&&!d&&(0,t.jsx)("video",{src:o??void 0,className:"absolute inset-0 size-full object-cover transition-opacity duration-300",style:{opacity:+!!u},autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",onCanPlay:()=>c(!0),onError:()=>h(!0)})]})})}),(0,t.jsx)("span",{className:"text-muted-foreground max-w-[72px] truncate text-center text-xs",children:e})]})}var u=e.i(332775),c=e.i(586419),d=e.i(812676),h=e.i(396103);
2function f({totalStories:e,currentIndex:r,isPaused:s,duration:n,onSegmentComplete:i}){return(0,t.jsxs)("div",{className:"jsx-9b2ac55b0e27cb0b flex w-full gap-1 px-2 pt-2",children:[Array.from({length:e}).map((e,a)=>(0,t.jsx)("div",{className:"jsx-9b2ac55b0e27cb0b h-0.5 flex-1 overflow-hidden rounded-full bg-white/30",children:a<r?(0,t.jsx)("div",{className:"jsx-9b2ac55b0e27cb0b h-full w-full bg-white"}):a===r?(0,t.jsx)("div",{style:{animation:`storyProgress ${n}ms linear forwards`,animationPlayState:s?"paused":"running"},onAnimationEnd:i,className:"jsx-9b2ac55b0e27cb0b "+((0,l.cn)("h-full bg-white")||"")}):null},a)),(0,t.jsx)(h.default,{id:"9b2ac55b0e27cb0b",children:"@keyframes storyProgress{0%{width:0%}to{width:100%}}"})]})}function m({storyGroups:e,initialGroupIndex:r,onClose:l,onStorySeen:o,sourceRef:h}){let[m,p]=(0,n.useState)(!0),[g,v]=(0,n.useState)(r),[y,x]=(0,n.useState)(0),[b,S]=(0,n.useState)(!1),[w,j]=(0,n.useState)(null),[_,N]=(0,n.useState)(!1),[k,O]=(0,n.useState)(!1),R=(0,n.useRef)(null),C=(0,n.useRef)(null),z=(0,n.useRef)(null),I=(0,n.useRef)(null),M=(0,n.useRef)(o);M.current=o;let T=e[g],E=T?.stories[y],F=E?.mediaType==="video";(0,n.useEffect)(()=>{j(null),N(!1),O(!1)},[g,y]),(0,n.useEffect)(()=>{T&&E&&M.current(T.modelId,E.id)},[g,y,T,E]),(0,n.useEffect)(()=>{if(!T)return;let t=T.stories[y+1];t&&(0,s.prefetchMedia)(t.mediaUrl,t.mediaType);let r=e[g+1];if(r){let e=r.stories[0];(0,s.prefetchMedia)(e.mediaUrl,e.mediaType)}},[g,y,T,e]);let $=(0,n.useCallback)(()=>{p(!1)},[]),P=(0,n.useCallback)(()=>{x(t=>{let r=e[g];return r?t+1<r.stories.length?t+1:g+1<e.length?(v(e=>e+1),0):(setTimeout(()=>p(!1),0),t):t})},[g,e]),A=(0,n.useCallback)(()=>{x(t=>{if(t>0)return t-1;if(g>0){let t=e[g-1];return v(e=>e-1),t.stories.length-1}return t})},[g,e]);if((0,n.useEffect)(()=>{let e=e=>{"ArrowRight"===e.key&&P(),"ArrowLeft"===e.key&&A()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[P,A]),(0,n.useEffect)(()=>{I.current&&(b?I.current.pause():I.current.play())},[b]),(0,n.useEffect)(()=>{T&&E||$()},[T,E,$]),!T||!E)return null;let q=F?w??5e3:5e3,L=F?!_:!k,D=b||L,U=e=>{C.current=e.clientX,R.current=setTimeout(()=>{S(!0)},200),e.preventDefault()},V=(e,t)=>{(R.current&&(clearTimeout(R.current),R.current=null),b)?S(!1):"right"===t?P():A()};return(0,t.jsx)(i.MediaLightbox,{isOpen:m,onClose:l,sourceRef:h,children:(0,t.jsxs)("div",{className:"flex h-full w-full items-center justify-center overscroll-contain",style:{touchAction:"none"},onTouchStart:e=>{C.current=e.touches[0].clientX,z.current=e.touches[0].clientY},onTouchEnd:t=>{let r=C.current,s=z.current;if(C.current=null,z.current=null,null===r||null===s)return;let n=t.changedTouches[0].clientX-r,i=t.changedTouches[0].clientY-s;if(Math.abs(i)>Math.abs(n)&&i>80)return void $();if(Math.abs(n)>60){if(n<0&&g+1<e.length)v(g+1),x(0);else if(n>0&&g>0){let t=e[g-1];v(g-1),x(t.stories.length-1)}}},children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 left-0 z-10",children:(0,t.jsx)(f,{totalStories:T.stories.length,currentIndex:y,isPaused:D,duration:q,onSegmentComplete:P},`${g}-${y}-${q}`)}),(0,t.jsxs)("div",{className:"absolute top-4 right-0 left-0 z-30 flex items-center justify-between px-4 pt-2",children:[(0,t.jsxs)(d.default,{href:`/models/${T.modelSlug??T.modelId}`,className:"flex items-center gap-2",onClick:$,children:[(0,t.jsx)("div",{className:"relative size-8 overflow-hidden rounded-full",children:T.modelImage?(0,t.jsx)(a.default,{src:T.modelImage,alt:T.modelName,fill:!0,className:"object-cover",sizes:"32px"}):(0,t.jsx)("div",{className:"bg-muted flex size-full items-center justify-center rounded-full",children:(0,t.jsx)("span",{className:"text-xs font-bold",children:T.modelName.charAt(0).toUpperCase()})})}),(0,t.jsx)("span",{className:"text-sm font-semibold text-white",children:T.modelName}),(0,t.jsx)("span",{className:"text-xs text-white/60",children:"Aujourd'hui"})]}),(0,t.jsx)("button",{onClick:$,className:"rounded-full p-3 text-white transition-colors hover:bg-white/20",children:(0,t.jsx)(c.X,{className:"size-7"})})]}),(0,t.jsxs)("div",{className:"relative h-full w-full",children:[L&&(0,t.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:(0,t.jsx)(u.Loader2,{className:"size-10 animate-spin text-white/60"})}),F?(0,t.jsx)("video",{ref:I,src:E.mediaUrl,className:"absolute inset-0 size-full object-contain",preload:"auto",autoPlay:!0,muted:!0,playsInl
2ine:!0,onLoadedMetadata:e=>{let t=e.currentTarget.duration;t&&isFinite(t)&&j(Math.round(1e3*t))},onCanPlay:()=>N(!0),onEnded:P},E.id):(0,t.jsx)(a.default,{src:E.mediaUrl,alt:`Story de ${T.modelName}`,fill:!0,className:"object-contain",sizes:"100vw",priority:!0,onLoad:()=>O(!0)})]}),(0,t.jsx)("div",{className:"absolute top-0 bottom-0 left-0 z-20 w-[30%] cursor-pointer",onPointerDown:e=>U(e),onPointerUp:e=>V(e,"left")}),(0,t.jsx)("div",{className:"absolute top-0 right-0 bottom-0 z-20 w-[70%] cursor-pointer",onPointerDown:e=>U(e),onPointerUp:e=>V(e,"right")})]})})}let p="fk_stories_seen";function g(){try{let e=localStorage.getItem(p);return e?JSON.parse(e):{}}catch{return{}}}function v({storyGroups:e}){let[l,a]=(0,n.useState)(!1),[u,c]=(0,n.useState)(0),{setRef:d,getRef:h}=(0,i.useMediaSourceRefs)(),f=(0,n.useRef)({}),[v,y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{f.current=g(),y(!0)},[]),(0,n.useEffect)(()=>{for(let t of e)for(let e of t.stories)(0,s.prefetchMedia)(e.mediaUrl,e.mediaType)},[e]);let x=(0,n.useCallback)((e,t)=>{let r;r=g(),r[e]??=[],r[e].includes(t)||r[e].push(t),localStorage.setItem(p,JSON.stringify(r)),f.current=g()},[]),b=(0,n.useCallback)(()=>{a(!1)},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mx-auto w-full max-w-[1075px]",children:(0,t.jsx)("div",{className:"scrollbar-hide flex gap-4 overflow-x-auto px-4 py-3",children:e.map((s,n)=>(0,t.jsx)("div",{ref:e=>d(n,e),children:(0,t.jsx)(o,{modelName:s.modelName,imageUrl:s.modelImage,videoUrl:s.stories.find(e=>"video"===e.mediaType)?.mediaUrl,hasUnseenStories:(e=>{if(!v)return!0;let t=f.current[e.modelId]??[];return e.stories.some(e=>!t.includes(e.id))})(s),onClick:()=>{(0,r.trackMediaEvent)("story_click",e[n].modelId),c(n),a(!0)}})},s.modelId))})}),l&&(0,t.jsx)(m,{storyGroups:e,initialGroupIndex:u,onClose:b,onStorySeen:x,sourceRef:h(u)})]})}e.s(["StoryBarClient",()=>v],303769)},838621,e=>{"use strict";let t=(0,e.i(940033).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",()=>t],838621)},676394,e=>{"use strict";var t=e.i(360440);function r(e,r){let s=(0,t.getVisitorId)();s&&fetch("/api/analytics/media-event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventType:e,entityId:r,visitorId:s}),keepalive:!0})}function s(e,r){let s=(0,t.getVisitorId)(),n=""===s?(0,t.getAnonymousSessionId)():s;n&&fetch("/api/analytics/media-event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventType:e,entityId:r,visitorId:n}),keepalive:!0}).catch(()=>{})}e.s(["trackMediaEvent",()=>r,"trackUsageEvent",()=>s])},910649,(e,t,r)=>{},242827,(e,t,r)=>{var s=e.i(413938);e.r(910649);var n=e.r(578984),i=n&&"object"==typeof n&&"default"in n?n:{default:n},l=void 0!==s.default&&s.default.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,r=t.name,s=void 0===r?"stylesheet":r,n=t.optimizeForSpeed,i=void 0===n?l:n;u(a(s),"`name` must be a string"),this._name=s,this._deletedRulePlaceholder="#"+s+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(l||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}
2,r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(a(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return l||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var s=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,s))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(s){l||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var s=this._tags[e];u(s,"old rule at index `"+e+"` not found"),s.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">
2typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(a(t),"makeStyleTag accepts only strings as second parameter");var s=document.createElement("style");this._nonce&&s.setAttribute("nonce",this._nonce),s.type="text/css",s.setAttribute("data-"+e,""),t&&s.appendChild(document.createTextNode(t));var n=document.head||document.getElementsByTagName("head")[0];return r?n.insertBefore(s,r):n.appendChild(s),s},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),s=e+r;return d[s]||(d[s]="jsx-"+c(e+"-"+r)),d[s]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,s=void 0===r?null:r,n=t.optimizeForSpeed,i=void 0!==n&&n;this._sheet=s||new o({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),s&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),s=r.styleId,n=r.rules;if(s in this._instancesCounts){this._instancesCounts[s]+=1;return}var i=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[s]=i,this._instancesCounts[s]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var s=this._fromServer&&this._fromServer[r];s?(s.parentNode.removeChild(s),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],s=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:s}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,s=e.id;if(r){var n=h(s,r);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return f(n,e)}):[f(n,t)]}}return{styleId:h(s),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=n.createContext(null);function g(){return new m}function v(){return n.useContext(p)}p.displayName="StyleSheetContext";var y=i.default.useInsertionEffect||i.default.useLayoutEffect,x="u">typeof window?g():void 0;function b(e){var t=x||v();return t&&("u"<typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,s=n.useContext(p),l=n.useState(function(){return s||t||g()})[0];return i.default.createElement(p.Provider,{value:l},r)},r.createStyleRegistry=g,r.style=b,r.useStyleRegistry=v},396103,(e,t,r)=>{t.exports=e.r(242827).style},770217,e=>{"use strict";let t=(0,e.i(940033).default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);e.s(["MapPin",()=>t],770217)},2740,e=>{"use strict";let t=new Set;function r(e){t.has(e)||(t.add(e),new Image().src=e)}function s(e,r){let s=function(e,{width:t=3840,quality:r=95}={}){return`/_next/image?url=${encodeURIComponent(e)}&w=${t}&q=${r}`}(e,r);t.has(s)||(t.add(s),new Image().src=s)}function n(e,{priority:r="low"}={}){t.has(e)||(t.add(e),fetch(e,{priority:r}).catch(()=>{}))}function i(e,t){"image"===t?r(e):n(e)}e.s(["prefetchImage",()=>r,"prefetchMedia",()=>i,"prefetchNextImage",()=>s,"prefetchVideo",()=>n])},302747,e=>{"use strict";var t=e.i(589218),r=e.i(975157);function s({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-accent animate-pulse rounded-md",e),...s})}e.s(["Skeleton",()=>s])},665432,e=>{"use strict";var t,r=e.i(493825);function s(e,t,s){try{return e(t)}
2catch(e){return(0,r.warn)("[nuqs] Error while parsing value `%s`: %O"+(s?" (for key `%s`)":""),t,e,s),null}}var n=function(){if("u"<typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),i=new Map,l={history:"replace",scroll:!1,shallow:!0,throttleMs:n},a=new Set,o=0,u=null;function c(e,t,s,o){let u=null===t?null:s(t);return(0,r.debug)("[nuqs queue] Enqueueing %s=%s %O",e,u,o),i.set(e,u),"push"===o.history&&(l.history="push"),o.scroll&&(l.scroll=!0),!1===o.shallow&&(l.shallow=!1),o.startTransition&&a.add(o.startTransition),l.throttleMs=Math.max(o.throttleMs??n,Number.isFinite(l.throttleMs)?l.throttleMs:0),u}function d(){return new URLSearchParams(location.search)}function h({getSearchParamsSnapshot:e=d,updateUrl:t,rateLimitFactor:s=1}){return null===u&&(u=new Promise((c,d)=>{if(!Number.isFinite(l.throttleMs)){(0,r.debug)("[nuqs queue] Skipping flush due to throttleMs=Infinity"),c(e()),setTimeout(()=>{u=null},0);return}function h(){o=performance.now();let[s,h]=function({updateUrl:e,getSearchParamsSnapshot:t}){let s=t();if(0===i.size)return[s,null];let o=Array.from(i.entries()),u={...l},c=Array.from(a);for(let[e,t]of(i.clear(),a.clear(),l.history="replace",l.scroll=!1,l.shallow=!0,l.throttleMs=n,(0,r.debug)("[nuqs queue] Flushing queue %O with options %O",o,u),o))null===t?s.delete(e):s.set(e,t);try{var d,h;let t;return d=c,h=()=>{e(s,{history:u.history,scroll:u.scroll,shallow:u.shallow})},(t=e=>{if(e===d.length)return h();let r=d[e];if(!r)throw Error("Invalid transition function");r(()=>t(e+1))})(0),[s,null]}catch(e){return console.error((0,r.error)(429),o.map(([e])=>e).join(),e),[s,e]}}({updateUrl:t,getSearchParamsSnapshot:e});null===h?c(s):d(s),u=null}setTimeout(function(){let e=performance.now()-o,t=l.throttleMs,n=s*Math.max(0,Math.min(t,t-e));(0,r.debug)("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",n,t),0===n?h():setTimeout(h,n)},0)})),u}var f=e.i(578984);function m(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),s(e.parse,r)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}var p=m({parse:e=>e,serialize:e=>`${e}`}),g=m({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});function v(e,t){return e.valueOf()===t.valueOf()}function y(e){return m({parse:t=>e.includes(t)?t:null,serialize:e=>e.toString()})}m({parse:e=>{let t=g.parse(e);return null===t?null:t-1},serialize:e=>g.serialize(e+1)}),m({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),m({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),m({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),m({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:v}),m({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:v}),m({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:v});var x={all:t=t||new Map,on:function(e,r){var s=t.get(e);s?s.push(r):t.set(e,[r])},off:function(e,r){var s=t.get(e);s&&(r?s.splice(s.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var s=t.get(e);s&&s.slice().map(function(e){e(r)}),(s=t.get("*"))&&s.slice().map(function(t){t(e,r)})}};function b(e,{history:t="replace",shallow:l=!0,scroll:a=!1,throttleMs:o=n,parse:u=e=>e,serialize:d=String,eq:m=(e,t)=>e===t,defaultValue:p,clearOnDefault:g=!0,startTransition:v}={history:"replace",scroll:!1,shallow:!0,throttleMs:n,parse:e=>e,serialize:String,eq:(e,t)=>e===t,clearOnDefault:!0,defaultValue:void 0}){let y=(0,r.useAdapter)(),S=y.searchParams,w=(0,f.useRef)(S?.get(e)??null),[j,_]=(0,f.useState)(()=>{let t=i.get(e),r=void 0===t?S?.get(e)??null:t;return null===r?null:s(u,r,e)}),N=(0,f.useRef)(j);(0,r.debug)("[nuqs `%s`] render - state: %O, iSP: %s",e,j,S?.get(e)??null),(0,f.useEffect)(()=>{let t=S?.get(e)??null;if(t===w.current)return;let n=null===t?null:s(u,t,e);(0,r.debug)("[nuqs `%s`] syncFromUseSearchParams %O",e,n),N.current=n,w.current=t,_(n)},[S?.get(e),e]),(0,f.useEffect)(()=>{function t({state:t,query:s}){(0,r.debug)("[nuqs `%s`] updateInternalState %O",e,t),N.current=t,w.current=s,_(t)}return(0,r.debug)("[nuqs `%s`] subscribing to sync",e),x.on(e,t),()=>{(0,r.debug)("[nuqs `%s`] unsubscribing from sync",e),x.off(e,t)}},[e]);let k=(0,f.useCallback)((r,s={})=>{let n="function"==typeof r?r(N.current??p??null):r;(s.clearOnDefault??g)&&null!==n&&void 0!==p&&m(n,p)&&(n=null);let i=c(e,n,d,{history:s.history??t,shallow:s.shallow??l,scroll:s.scroll??a,throttleMs:s.throttleMs??o,startTransition:s.startTransition??v});
2return x.emit(e,{state:n,query:i}),h(y)},[e,t,l,a,o,v,y.updateUrl,y.getSearchParamsSnapshot,y.rateLimitFactor]);return[j??p??null,k]}var S={};function w(e,{history:t="replace",scroll:s=!1,shallow:i=!0,throttleMs:l=n,clearOnDefault:a=!0,startTransition:o,urlKeys:u=S}={}){let d=Object.keys(e).join(","),m=(0,f.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,u[e]??e])),[d,JSON.stringify(u)]),p=(0,r.useAdapter)(),g=p.searchParams,v=(0,f.useRef)({}),y=(0,f.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(({defaultValue:e})=>e).join(",")]),[b,N]=(0,f.useState)(()=>j(e,u,g??new URLSearchParams).state),k=(0,f.useRef)(b);if((0,r.debug)("[nuq+ `%s`] render - state: %O, iSP: %s",d,b,g),Object.keys(v.current).join("&")!==Object.values(m).join("&")){let{state:t,hasChanged:r}=j(e,u,g,v.current,k.current);r&&(k.current=t,N(t)),v.current=Object.fromEntries(Object.values(m).map(e=>[e,g?.get(e)??null]))}(0,f.useEffect)(()=>{let{state:t,hasChanged:r}=j(e,u,g,v.current,k.current);r&&(k.current=t,N(t))},[Object.values(m).map(e=>`${e}=${g?.get(e)}`).join("&")]),(0,f.useEffect)(()=>{let t=Object.keys(e).reduce((t,s)=>(t[s]=({state:t,query:n})=>{var i;let{defaultValue:l}=e[s],a=m[s];k.current={...k.current,[s]:t??l??null},v.current[a]=n,(0,r.debug)("[nuq+ `%s`] Cross-hook key sync %s: %O (default: %O). Resolved: %O",d,a,t,l,k.current),i=k.current,(0,r.debug)("[nuq+ `%s`] updateInternalState %O",d,i),k.current=i,N(i)},t),{});for(let s of Object.keys(e)){let e=m[s];(0,r.debug)("[nuq+ `%s`] Subscribing to sync for `%s`",d,e),x.on(e,t[s])}return()=>{for(let s of Object.keys(e)){let e=m[s];(0,r.debug)("[nuq+ `%s`] Unsubscribing to sync for `%s`",d,e),x.off(e,t[s])}}},[d,m]);let O=(0,f.useCallback)((n,u={})=>{let f=Object.fromEntries(Object.keys(e).map(e=>[e,null])),g="function"==typeof n?n(_(k.current,y))??f:n??f;for(let[n,h]of((0,r.debug)("[nuq+ `%s`] setState: %O",d,g),Object.entries(g))){let r=e[n],d=m[n];if(!r)continue;(u.clearOnDefault??r.clearOnDefault??a)&&null!==h&&void 0!==r.defaultValue&&(r.eq??((e,t)=>e===t))(h,r.defaultValue)&&(h=null);let f=c(d,h,r.serialize??String,{history:u.history??r.history??t,shallow:u.shallow??r.shallow??i,scroll:u.scroll??r.scroll??s,throttleMs:u.throttleMs??r.throttleMs??l,startTransition:u.startTransition??r.startTransition??o});x.emit(d,{state:h,query:f})}return h(p)},[d,t,i,s,l,o,m,p.updateUrl,p.getSearchParamsSnapshot,p.rateLimitFactor,y]);return[(0,f.useMemo)(()=>_(b,y),[b,y]),O]}function j(e,t,r,n,l){let a=!1,o=Object.keys(e).reduce((o,u)=>{let c=t?.[u]??u,{parse:d}=e[u],h=i.get(c),f=void 0===h?r?.get(c)??null:h;if(n&&l&&(n[c]??null)===f)return o[u]=l[u]??null,o;a=!0;let m=null===f?null:s(d,f,u);return o[u]=m??null,n&&(n[c]=f),o},{});if(!a){let t=Object.keys(e),r=Object.keys(l??{});a=t.length!==r.length||t.some(e=>!r.includes(e))}return{state:o,hasChanged:a}}function _(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]??null]))}e.s(["parseAsInteger",()=>g,"parseAsString",()=>p,"parseAsStringLiteral",()=>y,"useQueryState",()=>b,"useQueryStates",()=>w],665432)},99849,e=>{"use strict";var t=e.i(578984);function r({threshold:e=.1,rootMargin:s="0px",triggerOnce:n=!1}={}){let[i,l]=(0,t.useState)(!1),[a,o]=(0,t.useState)(!1),u=(0,t.useRef)(!1),c=(0,t.useRef)(null),d=(0,t.useCallback)(t=>{if(c.current&&(c.current.disconnect(),c.current=null),!t)return void l(!1);if(n&&u.current)return;let r=new IntersectionObserver(([e])=>{let t=e.isIntersecting;l(t),t&&(u.current=!0,o(!0),n&&(r.disconnect(),c.current=null))},{threshold:e,rootMargin:s});r.observe(t),c.current=r},[e,s,n]);return(0,t.useEffect)(()=>()=>{c.current&&c.current.disconnect()},[]),{ref:d,isIntersecting:i,hasTriggered:a}}e.s(["useIntersectionObserver",()=>r])},672841,e=>{"use strict";var t=e.i(589218),r=e.i(578984),s=e.i(877471);let n="cubic-bezier(0.4, 0, 0.2, 1)";function i({isOpen:e,onClose:i,sourceRef:l,zClass:a="z-[9999]",children:o}){let[u,c]=(0,r.useState)(()=>e?"mounting":"closed"),[d,h]=(0,r.useState)(()=>e&&l?.current?l.current.getBoundingClientRect():null),f=(0,r.useRef)(e);if((0,r.useEffect)(()=>{e&&!f.current&&(l?.current?h(l.current.getBoundingClientRect()):h(null),c("mounting")),!e&&f.current&&"closing"!==u&&"closed"!==u&&(l?.current&&h(l.current.getBoundingClientRect()),c("closing")),f.current=e},[e,l,u]),(0,r.useEffect)(()=>
2{if("mounting"===u){let e=requestAnimationFrame(()=>{let e=requestAnimationFrame(()=>{c("opening")});return()=>cancelAnimationFrame(e)});return()=>cancelAnimationFrame(e)}if("opening"===u){let e=setTimeout(()=>c("open"),300);return()=>clearTimeout(e)}if("closing"===u){let e=setTimeout(()=>{c("closed"),h(null),i()},300);return()=>clearTimeout(e)}},[u,i]),(0,r.useEffect)(()=>{if("closed"===u)return;let e=e=>{"Escape"===e.key&&("open"===u||"opening"===u)&&(l?.current&&h(l.current.getBoundingClientRect()),c("closing"))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[u,l]),(0,r.useEffect)(()=>{if("closed"!==u){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[u]),"closed"===u)return null;let m=(0,t.jsx)("div",{role:"dialog","aria-modal":"true",className:`${a} flex flex-col bg-black overflow-hidden`,style:(()=>{if(!d){let e="opening"===u||"open"===u;return{position:"fixed",inset:0,opacity:+!!e,transform:e?"scale(1)":"scale(0.92)",transition:"mounting"===u?"none":`opacity 300ms ${n}, transform 300ms ${n}`}}return"mounting"===u||"closing"===u?{position:"fixed",top:d.top,left:d.left,width:d.width,height:d.height,borderRadius:"8px",opacity:1,transition:"mounting"===u?"none":`top 300ms ${n}, left 300ms ${n}, width 300ms ${n}, height 300ms ${n}, border-radius 300ms ${n}`}:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",borderRadius:"0px",opacity:1,transition:"opening"===u?`top 300ms ${n}, left 300ms ${n}, width 300ms ${n}, height 300ms ${n}, border-radius 300ms ${n}`:"none"}})(),children:o});return(0,t.jsx)(t.Fragment,{children:(0,s.createPortal)(m,document.body)})}function l(){let e=(0,r.useRef)(new Map);return{setRef:(0,r.useCallback)((t,r)=>{r?e.current.set(t,r):e.current.delete(t)},[]),getRef:(0,r.useCallback)(t=>({current:e.current.get(t)??null}),[])}}e.s(["MediaLightbox",()=>i,"useMediaSourceRefs",()=>l])}]);
3
4//# debugId=96638087-da25-8a5e-b0ab-b45b778db801

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.