PageSourceSearch

https://collart.ai/_next/static/chunks/686-931d279a13794102.js?dpl=058887d4-583f-4a39-96da-e9b70377a9e0

js collart.ai collected 2026-10-05 02:38:19 UTC 64,006 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[686,981],{11153:(e,t,a)=>{a.d(t,{A:()=>o});var l,r=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let o=function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",overflow:"visible",preserveAspectRatio:"none",style:{display:"block"},viewBox:"0 0 20 20"},e),l||(l=r.createElement("path",{fill:"var(--fill-0, white)",d:"M13.348 3.358a3.295 3.295 0 0 1 3.295 3.294v7.41a3.296 3.296 0 0 1-3.295 3.296h-7.41a3.295 3.295 0 0 1-3.295-3.295V6.652a3.294 3.294 0 0 1 3.294-3.294zm-1.097 6.637a1.44 1.44 0 0 0-1.728-.334l-4.681 2.367c-1.35.683-.865 2.72.648 2.72h6.762c1.236 0 1.895-1.457 1.079-2.386zM6.449 5.966a1.198 1.198 0 1 0 .001 2.396 1.198 1.198 0 0 0-.001-2.396"})))}},11232:(e,t,a)=>{a.d(t,{A:()=>o});var l,r=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let o=function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 55 12"},e),l||(l=r.createElement("path",{fill:"#fff",d:"M50.154 11.84V1.23h2.272V11.84zM48.57 5.406V3.375h5.584v2.032zM42.01 11.84V3.376h2.192l.08 2.72-.384-.56q.192-.656.624-1.184a3.2 3.2 0 0 1 1.008-.848 2.66 2.66 0 0 1 1.232-.304q.271 0 .528.048.255.048.432.112l-.608 2.496a2 2 0 0 0-.464-.16 2 2 0 0 0-.56-.08q-.384 0-.72.144-.32.128-.56.384-.24.24-.384.576a2 2 0 0 0-.128.736v4.384zM34.756 12a3.3 3.3 0 0 1-1.904-.576q-.849-.576-1.344-1.568t-.496-2.272.496-2.256q.512-.993 1.376-1.552.864-.576 1.968-.576.624 0 1.136.192.528.175.912.496.399.32.672.736.272.416.384.896l-.48-.08V3.376h2.256v8.464h-2.288V9.808l.512-.048a2.7 2.7 0 0 1-.416.848 3.3 3.3 0 0 1-.72.72 3.8 3.8 0 0 1-.944.496 3.5 3.5 0 0 1-1.12.176m.624-1.968q.64 0 1.12-.304a1.97 1.97 0 0 0 .736-.848q.272-.561.272-1.296 0-.72-.272-1.264a1.97 1.97 0 0 0-.736-.848 1.97 1.97 0 0 0-1.12-.32q-.624 0-1.104.32-.465.303-.736.848-.273.543-.272 1.264 0 .735.272 1.296.271.543.736.848.48.303 1.104.304M27.166 11.84V0h2.272v11.84zM22.572 11.84V0h2.272v11.84zM16.383 12q-1.296 0-2.32-.56a4.34 4.34 0 0 1-1.6-1.568q-.576-.993-.576-2.272 0-1.281.576-2.256a4.34 4.34 0 0 1 1.6-1.568q1.024-.576 2.32-.576 1.28 0 2.288.576a4.2 4.2 0 0 1 1.6 1.568q.576.975.576 2.256t-.576 2.272a4.2 4.2 0 0 1-1.6 1.568q-1.008.56-2.288.56m0-1.984a2.1 2.1 0 0 0 1.12-.304q.495-.321.768-.864.288-.561.288-1.248 0-.705-.288-1.248a2 2 0 0 0-.768-.864 2 2 0 0 0-1.12-.32 2.05 2.05 0 0 0-1.136.32q-.495.32-.784.864A2.5 2.5 0 0 0 14.19 7.6q-.015.687.272 1.248.288.543.784.864.496.303 1.136.304M6.648 12a6.1 6.1 0 0 1-2.272-.416 5.6 5.6 0 0 1-1.792-1.2 5.6 5.6 0 0 1-1.168-1.84A6.4 6.4 0 0 1 1 6.208q0-1.232.432-2.272a5.4 5.4 0 0 1 1.216-1.824A5.5 5.5 0 0 1 4.488.896 6 6 0 0 1 6.776.464q.8 0 1.568.224.784.208 1.424.624.655.416 1.12.992L9.384 3.968a5 5 0 0 0-.8-.656 3 3 0 0 0-.864-.432 2.8 2.8 0 0 0-.96-.16q-.688 0-1.296.256-.592.255-1.04.72a3.4 3.4 0 0 0-.72 1.104q-.256.64-.256 1.424 0 .8.256 1.456.255.64.72 1.104.464.448 1.104.704.656.24 1.44.24.512 0 .992-.144.48-.145.88-.4.416-.255.736-.592l1.168 1.872q-.384.433-1.04.784a6.2 6.2 0 0 1-1.44.56A7 7 0 0 1 6.648 12"})))}},26416:(e,t,a)=>{a.d(t,{SR:()=>w,Uk:()=>u,VF:()=>c,WN:()=>f,aB:()=>s,hq:()=>v,lI:()=>o,nv:()=>x,wn:()=>n});var l=a(12115),r=a(78506);let n=72,o=64,i="--mobile-tab-bar-height",s="--viewport-offset-bottom",c="mobile-tab-bar-navigation",d="mobile-bottom-layout-change",u="calc(var(".concat(i,", ").concat(o,"px) + env(safe-area-inset-bottom) + var(").concat(s,", 0px))"),m=(e,t)=>
1{let a=Number.parseFloat(window.getComputedStyle(document.documentElement).getPropertyValue(e));return Number.isFinite(a)?a:t},p=()=>m(i,o),h=()=>m(s,0),f=e=>{"undefined"!=typeof document&&(document.documentElement.style.setProperty(i,"".concat(e,"px")),window.dispatchEvent(new CustomEvent(d,{detail:{height:e}})))},v=()=>{"undefined"!=typeof document&&(document.documentElement.style.removeProperty(i),window.dispatchEvent(new CustomEvent(d,{detail:{height:o}})))},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p(),a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h();return t+e+a},w=e=>{let[t,a]=(0,l.useState)({mobileTabBarHeight:o,mobileBottomViewportOffset:0});return(0,l.useEffect)(()=>{let e=()=>{a(e=>{let t={mobileTabBarHeight:p(),mobileBottomViewportOffset:h()};return e.mobileTabBarHeight===t.mobileTabBarHeight&&e.mobileBottomViewportOffset===t.mobileBottomViewportOffset?e:t})};return e(),window.addEventListener(d,e),window.addEventListener(r.Zm,e),()=>{window.removeEventListener(d,e),window.removeEventListener(r.Zm,e)}},[]),g(e,t.mobileTabBarHeight,t.mobileBottomViewportOffset)},x=(e,t,a)=>{let[r,n]=(0,l.useState)(0);(0,l.useLayoutEffect)(()=>{let t=e.current;if(!t)return void n(0);let a=()=>{let e=t.getBoundingClientRect().height;n(Number.isFinite(e)?Math.ceil(e):0)};a();let l=new ResizeObserver(a);return l.observe(t),()=>l.disconnect()},[e,t,a]);let o=r+16;return t?a+o:o}},36567:(e,t,a)=>{a.d(t,{A:()=>o});var l,r=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let o=function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",overflow:"visible",preserveAspectRatio:"none",style:{display:"block"},viewBox:"0 0 20 20"},e),l||(l=r.createElement("path",{fill:"var(--fill-0, white)",d:"M13.122 2.46a3.664 3.664 0 0 1 3.664 3.665v7.751a3.664 3.664 0 0 1-3.664 3.664H6.88a3.664 3.664 0 0 1-3.664-3.664V6.125a3.664 3.664 0 0 1 3.664-3.664zM9.264 7.684a.733.733 0 0 0-1.092.638v3.266c0 .56.603.913 1.092.639l2.898-1.634a.733.733 0 0 0 0-1.277z"})))}},40678:(e,t,a)=>{a.d(t,{A:()=>i});var l,r,n=a(12115);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let i=function(e){return n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",overflow:"visible",preserveAspectRatio:"none",style:{display:"block"},viewBox:"0 0 20 20"},e),l||(l=n.createElement("path",{stroke:"var(--stroke-0, white)",strokeLinecap:"round",strokeWidth:1.5,d:"M3 6h14M3 14h5M14 3v5M6 3v14"})),r||(r=n.createElement("path",{fill:"var(--fill-0, white)",d:"M13.787 10.54a.229.229 0 0 1 .426 0l.518 1.313c.255.648.768 1.16 1.416 1.416l1.314.518a.229.229 0 0 1 0 .426l-1.314.518a2.51 2.51 0 0 0-1.416 1.416l-.518 1.314a.229.229 0 0 1-.426 0l-.518-1.314a2.51 2.51 0 0 0-1.416-1.416l-1.314-.518a.229.229 0 0 1 0-.426l1.314-.518a2.51 2.51 0 0 0 1.416-1.416z"})))}},44369:(e,t,a)=>{a.d(t,{A:()=>u});var l,r=a(95155),n=a(12115);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let i=function(e){return n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),l||(l=n.createElement("path",{fill:"currentColor",d:"M15.3 11.895a.375.375 0 0 1-.53.53l-2.395-2.395v6.095a.375.375 0 0 1-.75 0v-6.094L9.23 12.425a.375.375 0 0 1-.53-.53l3.035-3.035a.375.375 0 0 1 .53 0zm.075-3.52A.375.375 0 0 1 15 8.75H9A.375.375 0 0 1 9 8h6c.207 0 .375.168.375.375"})))};var s=a(76445),c=a(24274),d=a(26416);let u=e=>{let{className:t,containerRef:a}=e,[l,o]=(0,n.useState)(!1),{t:u}=(0,c.Bd)();return(0,n.useEffect)(()=>{let e=window.matchMedia("(max-width: ".concat(768,"px)")),t=()=>o(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,r.jsx)("button",{type:"button","aria-label":u("a11y.go_to_top"),onClick:()=>
1{if(null==a?void 0:a.current){let e=a.current.getBoundingClientRect().top+window.scrollY;l?window.scrollTo({top:e,behavior:"smooth"}):(e=>e.scrollHeight-e.clientHeight>1)(a.current)?a.current.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:e,behavior:"smooth"})}else window.scrollTo({top:0,behavior:"smooth"})},style:{bottom:l?"calc(".concat(d.Uk," + 16px)"):"2rem"},className:(0,s.cn)("fixed z-20 cursor-pointer right-8 w-12 h-12 bg-[#00000066] hover:bg-[#000000B2] rounded-full flex items-center justify-center transition-all duration-200 ease-in-out text-white",null!=t?t:""),children:(0,r.jsx)(i,{})})}},55586:(e,t,a)=>{a.d(t,{S:()=>r,c:()=>l});let l=[{label:"Seedance 2.0",href:"/m/seedance/seedance-2",badge:"hot"},{label:"Seedance 2.5",href:"/m/seedance/seedance-2-5",badge:"new"},{label:"Seedance 3.0",href:"/m/seedance/seedance-3",badge:"comingSoon"},{label:"Flux 3",href:"/m/flux/flux-3",badge:"comingSoon"},{label:"Kling 3.0",href:"/m/kling/kling-3"},{label:"Google Veo 3.0",href:"/m/google-veo-3/google-veo-3"},{label:"Gemini Omni",href:"/m/gemini/gemini-omni",badge:"comingSoon"},{label:"Grok Imagine",href:"/m/grok/grok-imagine"},{label:"PixVerse V4.5",href:"/m/pixverse/pixverse-v4-5"},{label:"Hailuo 2.0",href:"/m/hailuo/hailuo-2"},{label:"Wan 3.0",labelKey:"modelLanding.wanWan30.navLabel",href:"/m/wan/wan-3-0"},{label:"Wan 2.7",href:"/m/wan/wan-2-7-video"}],r=[{label:"Qwen Image 2.1",href:"/m/qwen/qwen-image-2-1",badge:"comingSoon"},{label:"GPT Image 2.0",labelKey:"gptimage2.nav.label",href:"/m/gpt/gpt-image-2",badge:"hot"},{label:"GPT Image 2.5",labelKey:"modelLanding.gptGptImage25.navLabel",href:"/m/gpt/gpt-image-2-5"},{label:"Flux.2 Pro",href:"/m/flux/flux-2-pro"},{label:"Recraft",href:"/m/recraft/recraft"},{label:"Ideogram 3.0",href:"/m/ideogram/ideogram-3"},{label:"Seedream 5.0 Lite",href:"/m/seedream/seedream-5-lite"},{label:"Seedream 5.0 Pro",href:"/m/seedream/seedream-5-pro"},{label:"Seedream 6.0",href:"/m/seedream/seedream-6-0",badge:"comingSoon"},{label:"Nano Banana 2 Lite",href:"/m/nanobanana/nano-banana-2-lite",badge:"comingSoon"},{label:"Nano Banana Pro",href:"/m/nanobanana/nano-banana-pro"},{label:"Wan 2.7",href:"/m/wan/wan-2-7-image"}]},59564:(e,t,a)=>{a.d(t,{n:()=>d});var l,r=a(95155),n=a(12115),o=a(69245),i=a(76445);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let c=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",overflow:"visible",preserveAspectRatio:"none",style:{display:"block"},viewBox:"0 0 12 12"},e),l||(l=n.createElement("path",{fill:"#fff",d:"M4.955.806A.25.25 0 0 0 4.547 1c0 .363-.052.823-.142 1.265-.09.444-.216.847-.354 1.107a3.7 3.7 0 0 1-.325.539c-.065.083-.13.156-.23.266q-.07.075-.164.181-.13.145-.238.26a4.7 4.7 0 0 0-.675.867C2.059 6.073 2 6.833 2 7.355c0 2.242 1.814 3.895 4 3.895 2.193 0 4-1.74 4-3.975 0-.533-.028-1.112-.324-2.001a11 11 0 0 0-.323-.892 7 7 0 0 0-.34-.65.25.25 0 0 0-.466.095c-.075.626-.355 1.012-.591 1.243-.05-.178-.119-.4-.204-.644-.186-.527-.457-1.17-.79-1.659-.553-.81-1.279-1.383-1.776-1.776z"})))},d=e=>{let{label:t,className:a,variant:l="default"}=e;return(0,r.jsxs)("span",{className:(0,i.cn)("inline-flex shrink-0 px-2","recommendation"===l?"h-5 items-center justify-center gap-0.5 rounded-full":"rounded-[6px] py-0.5",a),style:{...(0,o.rR)("recommendation"===l?o.fj.recommendationBadge:o.fj.redAccentPillItalic),background:"recommendation"===l?"linear-gradient(90deg, ".concat((0,o.hm)("Fashion/CreditPurchaseGradientStart")," 0%, ").concat((0,o.hm)("Fashion/CreditPurchaseGradientEnd")," 100%)"):(0,o.hm)("a_ColorGeneral/Red"),color:(0,o.hm)("a_Grays/White")},children:["recommendation"===l?(0,r.jsx)(c,{className:"size-3 shrink-0","aria-hidden":!0}):null,(0,r.jsx)("span",{className:"min-w-0 truncate",children:t.trim()})]})}},60981:(e,t,a)=>{a.d(t,{Fo:()=>d,NA:()=>u,SU:()=>m});var l=a(12115);let r="(min-width: 768px)",n="(min-width: 1024px)",o="(min-width: 1280px)",
1i=e=>t=>{let a=window.matchMedia(e);return a.addEventListener("change",t),()=>a.removeEventListener("change",t)},s=e=>()=>window.matchMedia(e).matches,c=()=>!1,d=()=>(0,l.useSyncExternalStore)(i(r),s(r),c),u=()=>(0,l.useSyncExternalStore)(i(n),s(n),c),m=()=>(0,l.useSyncExternalStore)(i(o),s(o),c)},62779:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(95155),r=a(12115),n=a(76445);let o={height:0,isMobileViewport:!0,left:0,width:0},i=e=>Math.round(2*e)/2,s=e=>{let{children:t,className:a,topOffset:s=56,zIndex:c=40}=e,d=(0,r.useRef)(null),u=(0,r.useRef)(null),m=(0,r.useRef)(null),[p,h]=(0,r.useState)(!1),[f,v]=(0,r.useState)(o),g=(0,r.useCallback)(()=>{let e=d.current,t=u.current;if(!e||!t)return;let a=e.getBoundingClientRect(),l=window.innerWidth<768,r=l?s:68,n={height:t.offsetHeight,isMobileViewport:l,left:i(a.left),width:i(a.width)};v(e=>e.height===n.height&&e.isMobileViewport===n.isMobileViewport&&e.left===n.left&&e.width===n.width?e:n);let o=a.top<=r;h(e=>e===o?e:o)},[s]);(0,r.useEffect)(()=>{var e,t;let a=()=>{null!==m.current&&cancelAnimationFrame(m.current),m.current=window.requestAnimationFrame(()=>{g()})};a(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),null==(e=window.visualViewport)||e.addEventListener("resize",a),null==(t=window.visualViewport)||t.addEventListener("scroll",a);let l="undefined"!=typeof ResizeObserver?new ResizeObserver(a):null;return d.current&&(null==l||l.observe(d.current)),u.current&&(null==l||l.observe(u.current)),()=>{var e,t;null!==m.current&&cancelAnimationFrame(m.current),window.removeEventListener("scroll",a),window.removeEventListener("resize",a),null==(e=window.visualViewport)||e.removeEventListener("resize",a),null==(t=window.visualViewport)||t.removeEventListener("scroll",a),null==l||l.disconnect()}},[g]);let w=f.isMobileViewport?s:68;
1return(0,l.jsx)("div",{ref:d,style:{height:p?f.height:void 0},children:(0,l.jsx)("div",{ref:u,"data-pinned":p?"true":"false",className:(0,n.cn)(a),style:p?{left:f.isMobileViewport?0:f.left,marginLeft:0,marginRight:0,position:"fixed",right:f.isMobileViewport?0:"auto",top:w,width:f.isMobileViewport?"100%":f.width,zIndex:c}:void 0,children:t})})}},63598:(e,t,a)=>{a.d(t,{A:()=>o});var l,r=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let o=function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",overflow:"visible",preserveAspectRatio:"none",style:{display:"block"},viewBox:"0 0 19 19"},e),l||(l=r.createElement("g",{fill:"var(--fill-0, white)"},r.createElement("path",{d:"M2.249.32a.136.136 0 0 1 .252 0l.308.78c.152.385.456.69.84.841l.78.308a.136.136 0 0 1 0 .252l-.78.308c-.384.152-.688.456-.84.84l-.308.78a.136.136 0 0 1-.252 0l-.308-.78a1.5 1.5 0 0 0-.84-.84L.32 2.5a.136.136 0 0 1 0-.252l.78-.308c.384-.152.688-.456.84-.84zM17.213 15.836a.097.097 0 0 1 .18 0l.22.557c.109.275.326.492.601.6l.557.22a.097.097 0 0 1 0 .18l-.557.22a1.07 1.07 0 0 0-.6.601l-.22.557a.097.097 0 0 1-.18 0l-.22-.557a1.07 1.07 0 0 0-.601-.6l-.557-.22a.097.097 0 0 1 0-.18l.557-.22c.275-.109.492-.326.6-.601zM13.982 3.995a1.452 1.452 0 0 1 2.053 2.053L14.982 7.1q.062.048.114.11c1.011 1.234 1.556 2.536 1.74 3.706.181 1.148.023 2.241-.478 2.992-.938 1.407-2.36 1.615-3.42 1.509a5.9 5.9 0 0 1-1.843-.504l-.033-.017-.01-.004-.006-.003h-.001a.75.75 0 0 1 .67-1.343l.015.008.075.033a4.419 4.419 0 0 0 1.283.338c.754.075 1.509-.08 2.022-.849.225-.337.39-1.012.245-1.927-.14-.892-.568-1.949-1.419-2.987l-.006-.01-3.466 3.467a3.7 3.7 0 0 1-2.5 1.08.615.615 0 0 1-.633-.634 3.7 3.7 0 0 1 1.08-2.499l3.292-3.293C10.56 5.61 9.346 5.27 8.21 5.233c-1.452-.048-2.579.28-3.367.873-.777.585-1.301 1.481-1.457 2.732l-.001.01c-.28 2.023.818 4.478 3.122 6.092a8 8 0 0 0 2.856 1.269.75.75 0 0 1-.32 1.465 9.5 9.5 0 0 1-3.397-1.505C2.977 14.3 1.526 11.329 1.9 8.642H1.9c.2-1.593.898-2.876 2.04-3.735 1.133-.852 2.626-1.23 4.319-1.175 1.437.048 2.938.486 4.32 1.315a.7.7 0 0 1 .186.164z"}))))}},68105:(e,t,a)=>{a.d(t,{A:()=>o});var l,r=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let o=function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",overflow:"visible",preserveAspectRatio:"none",style:{display:"block"},viewBox:"0 0 24 24"},e),l||(l=r.createElement("path",{fill:"var(--fill-0, white)",d:"M8.575 1.75a.854.854 0 0 0-.84.865v.853q0 .045.003.089c.022 2.462.85 2.52.85 5.032h6.828c0-2.394.739-4.034.835-4.936a1 1 0 0 0 .018-.185v-.853a.853.853 0 1 0-1.707 0v.853c0 1.707-1.707 0-2.56 2.56-.854-2.56-2.56-.853-2.56-2.56v-.853a.854.854 0 0 0-.867-.865m.013 8.546c-.816 0-4.002 4.682-4.28 10.977a.85.85 0 0 0 .856.877h13.612c.48 0 .878-.398.857-.877-.273-6.296-3.401-10.977-4.217-10.977z"})))}},68431:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var l,r,n=a(12115);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let i=function(e){return n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32"},e),l||(l=n.createElement("path",{fill:"#fff",d:"M16 10a6 6 0 1 0 6 6h4c0 5.523-4.477 10-10 10S6 21.523 6 16 10.477 6 16 6z"})),r||(r=n.createElement("path",{fill:"#743DED",d:"M21.375 5.625H26v4.625h-4.625z"})))}},77423:(e,t,a)=>{a.d(t,{default:()=>ec});var l,r,n,o=a(95155),i=a(12115),s=a(20063),c=a(24274),d=a(60080),u=a(68209),m=a(52619),p=a.n(m),h=a(15239),f=a(84400),v=a(36567),g=a(63598),w=a(11153);function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}var b=a(68105),y=a(40678),_=a(76445),j=a(69245);
1let E=[{href:"/ai-video/image-to-video",mobileHref:"/ai-video/image-to-video",titleKey:"explore.banner.ai_video",type:"video",Icon:v.A,dropdownItems:[{href:"/ai-video/image-to-video",labelKey:"footer.aiGeneration.imageToVideo",type:"image_to_video"},{href:"/ai-video/text-to-video",labelKey:"footer.aiGeneration.textToVideo",type:"text_to_video"},{href:"/ai-video/reference-to-video",labelKey:"footer.aiGeneration.referenceToVideo",type:"reference_to_video"},{href:"/ai-video/start-end-frame",labelKey:"Start/End Frame",type:"start_end_frame"},{href:"/ai-video/motion-sync",labelKey:"explore.banner.motion_sync",type:"motion_sync"}]},{href:"/ai-image/image-to-image",mobileHref:"/ai-image/image-to-image",titleKey:"explore.banner.ai_image",type:"image",Icon:w.A,dropdownItems:[{href:"/ai-image/image-to-image",labelKey:"footer.aiGeneration.imageToImage",type:"image_to_image"},{href:"/ai-image/text-to-image",labelKey:"footer.aiGeneration.textToImage",type:"text_to_image"}]},{href:"/creative-canvas",mobileHref:"/creative-canvas",titleKey:"explore.banner.ai_canvas",type:"ai_canvas",Icon:y.A},{href:"/ai-tools/face-swap",mobileHref:"/ai-tools",titleKey:"explore.banner.ai_tools",type:"ai_tools",Icon:g.A,dropdownItems:[{href:"/ai-tools/face-swap",labelKey:"footer.aiTools.faceSwap",type:"photo_face_swap"},{href:"/ai-tools/remove-objects",labelKey:"remove_objects.title",type:"remove_objects"},{href:"/ai-tools/image-expand",labelKey:"ai_image_expand",type:"image_expand"},{href:"/ai-tools/photo-enhance",labelKey:"seoOverview.aiToolsPhotoEnhance.hero.title",type:"photo_enhance"},{href:"/ai-tools/video-enhancer",labelKey:"footer.aiTools.videoEnhancer",type:"video_enhancer"},{href:"/ai-tools/video-watermark-remover",labelKey:"footer.aiTools.videoWatermarkRemover",type:"video_watermark_remover"}]},{href:"/ai-video/motion-sync",mobileHref:"/ai-video/motion-sync",titleKey:"explore.banner.motion_sync",type:"motion_sync",Icon:function(e){return i.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),l||(l=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.133 6.726a3.15 3.15 0 0 1 2.191.458l1.424.91c.514.33 1.181.295 1.658-.086l1.182-.945a.839.839 0 1 1 1.04 1.315l-1.964 1.536c-.639.5-1.516.565-2.222.165l-1.112-.63a.326.326 0 0 0-.487.283v4.582q0 .655.107 1.301l.297 1.783c.08.481.269.939.552 1.337l1.948 2.746a.962.962 0 0 1-1.537 1.158l-2.553-3.192-1.787-2.68a.52.52 0 0 0-.767-.114l-1.267 1.044c-.323.266-.472.69-.385 1.099l.646 3.044a.875.875 0 0 1-1.672.495L7.3 19.41a2.93 2.93 0 0 1 .176-2.477l1.403-2.51a3.4 3.4 0 0 0 .431-1.656v-1.519a.21.21 0 0 0-.358-.148l-1.28 1.288a1.634 1.634 0 0 1-1.94.282l-2.3-1.255a.828.828 0 0 1 .735-1.481l1.423.64a1.31 1.31 0 0 0 1.584-.407l1.598-2.124a2.2 2.2 0 0 1 1.42-.854zM11.023 1a2.635 2.635 0 1 1-.001 5.27 2.635 2.635 0 0 1 0-5.27",clipRule:"evenodd"})))}},{href:"/studio",mobileHref:"/studio",openInNewTab:!0,titleKey:"explore.banner.outfit_generator",type:"outfit_generator",Icon:b.A}].filter(e=>!0!==e.hidden),k=E.filter(e=>"video"===e.type||"image"===e.type),C=["ai_tools","ai_canvas","motion_sync","outfit_generator"].flatMap(e=>E.filter(t=>t.type===e)),V=[{href:"/creative-canvas",titleKey:"explore.popular.aiCanvas.title",descriptionKey:"explore.popular.aiCanvas.description",imageUrl:"/_next/static/media/home_canvas_intro_poster.74145acf.jpg",videoUrl:"/videos/home/home_canvas_intro.mp4",type:"popular_ai_canvas"},{href:"/studio",openInNewTab:!0,titleKey:"explore.popular.outfitGenerator.title",descriptionKey:"explore.popular.outfitGenerator.description",imageUrl:"/_next/static/media/outfit_generator_without_cursor.8a8772f2.png",type:"popular_outfit_generator"},{href:"/ai-image/image-to-image?model=gpt_image_2_fal_i2i",titleKey:"explore.popular.chatgptImages.title",descriptionKey:"explore.popular.chatgptImages.description",imageUrl:"https://collart.nyc3.cdn.digitaloceanspaces.com/media-processor/auto/images/720p/4f0b94442074bda7867d7410eaa53a83.jpg",type:"popular_chatgpt_images"},{href:"/ai-video/reference-to-video?model=video_seedance_v2",titleKey:"explore.popular.seedance.title",descriptionKey:"explore.popular.seedance.description",imageUrl:"https://collart.nyc3.cdn.digitaloceanspaces.com/media-processor/auto/images/720p/4b07badb1707ecfdb28396a31976a215.jpg",type:"popular_seedance"}
1,{href:"/ai-video/image-to-video?model=video_kling_v3",titleKey:"explore.popular.kling.title",descriptionKey:"explore.popular.kling.description",imageUrl:"https://collart.nyc3.cdn.digitaloceanspaces.com/media-processor/auto/images/720p/50d178a2c44bd195db984d2b76e86553.jpg",type:"popular_kling"}].filter(e=>!0!==e.hidden),O=e=>{let{className:t}=e;return(0,o.jsx)("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M5.073 6.5h5.854c.462 0 .706.548.397.892L8.397 10.65a.533.533 0 0 1-.794 0L4.676 7.392A.533.533 0 0 1 5.073 6.5Z",fill:"currentColor"})})},M=e=>{let{direction:t,disabled:a,fillColor:l,iconColor:r,onClick:n}=e;return(0,o.jsx)("button",{type:"button","aria-label":"left"===t?"Scroll popular cards left":"Scroll popular cards right",className:(0,_.cn)("pointer-events-none absolute top-1/2 z-20 hidden size-8 -translate-y-1/2 items-center justify-center rounded-full opacity-0 transition-opacity duration-200 md:flex","group-hover/popular-scroll:pointer-events-auto group-hover/popular-scroll:opacity-100 group-focus-within/popular-scroll:pointer-events-auto group-focus-within/popular-scroll:opacity-100","left"===t?"left-0":"right-0",a&&"cursor-default"),disabled:a,style:a?{pointerEvents:"none"}:void 0,onClick:n,children:(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:"left"===t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("rect",{width:"32",height:"32",rx:"16",fill:l}),(0,o.jsx)("path",{d:"M17.156 22.94L11.508 17.292C11.028 16.828 11.028 16.06 11.508 15.596L17.156 9.94798C17.62 9.48398 18.388 9.48398 18.852 9.94798C19.316 10.412 19.316 11.18 18.852 11.644L14.052 16.444L18.852 21.244C19.316 21.708 19.316 22.476 18.852 22.94C18.612 23.18 18.308 23.292 18.004 23.292C17.7 23.292 17.396 23.18 17.156 22.94Z",fill:r})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32C24.8366 32 32 24.8366 32 16Z",fill:l}),(0,o.jsx)("path",{d:"M14.8438 22.94L20.4918 17.292C20.9718 16.828 20.9718 16.06 20.4918 15.596L14.8438 9.94798C14.3798 9.48398 13.6118 9.48398 13.1478 9.94798C12.6838 10.412 12.6838 11.18 13.1478 11.644L17.9478 16.444L13.1478 21.244C12.6838 21.708 12.6838 22.476 13.1478 22.94C13.3878 23.18 13.6918 23.292 13.9958 23.292C14.2998 23.292 14.6038 23.18 14.8438 22.94Z",fill:r})]})})})},S=i.memo(()=>{let{t:e,i18n:t}=(0,c.Bd)(),a=(0,s.useParams)().locale,l="string"==typeof a?a:t.language,[r,n]=i.useState(null),[u,m]=i.useState({canScrollLeft:!1,canScrollRight:!1,hasOverflow:!1}),v=i.useRef(null),g=(0,j.hm)("a_Labels/Primary"),w=(0,j.hm)("a_Labels/Secondary"),x=(0,j.hm)("a_Backgrounds/Primary"),b=(0,j.hm)("a_Fill/Secondary"),y=(0,j.hm)("a_Fill/Secondary"),S=(0,j.hm)("a_Grays/White"),N=(0,j.hm)("a_Separators/ExploreMenu"),T=(0,j.hm)("a_Separators/ExploreMenuActive"),L=(0,j.hm)("a_Labels/OnImagePrimary"),B=(0,j.hm)("a_Labels/OnImageSecondary"),I=(0,j.hm)("a_Grays/Black"),R="linear-gradient(117deg, ".concat((0,j.hm)("a_Backgrounds/ExploreMenuGradientStart")," 0%, ").concat((0,j.hm)("a_Backgrounds/ExploreMenuGradientMidA")," 24%, ").concat((0,j.hm)("a_Backgrounds/ExploreMenuGradientMidB")," 64%, ").concat((0,j.hm)("a_Backgrounds/ExploreMenuGradientMidC")," 80%, ").concat((0,j.hm)("a_Backgrounds/ExploreMenuGradientEnd")," 100%)"),W=i.useCallback(e=>{if(/^(?:[a-z][a-z\d+\-.]*:|\/\/|#)/i.test(e))return e;let t=e.startsWith("/")?e:"/".concat(e);return t==="/".concat(l)||t.startsWith("/".concat(l,"/"))?t:"/".concat(l).concat(t)},[l]),A=i.useCallback(()=>{let e=v.current;if(!e)return;let t=Math.max(0,e.scrollWidth-e.clientWidth),a=Math.min(e.scrollLeft,t);m({canScrollLeft:a>1,canScrollRight:a<t-1,hasOverflow:t>1})},[]);i.useEffect(()=>{let e=v.current;if(!e)return;A();let t=new ResizeObserver(A);return t.observe(e),e.addEventListener("scroll",A,{passive:!0}),()=>{t.disconnect(),e.removeEventListener("scroll",A)}},[A]);let P=i.useCallback(e=>{let t=v.current;if(!t)return;let a=Math.max(280,.7*t.clientWidth);t.scrollBy({left:"left"===e?-a:a,behavior:"smooth"})},[]),q=t=>{let{titleKey:a,type:l,Icon:r,disabled:n,href:i,mobileHref:s,openInNewTab:c}=t,u="video"===l||"image"===l,m=(0,_.cn)("flex min-w-0 flex-1 flex-col items-center justify-center gap-1.5 rounded-xl border px-2 transition-transform duration-200",u?"h-20":"h-[72px]",!n&&"active:scale-[0.98]",n&&"cursor-default"),h={background:R,borderColor:N,color:g},f=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r,{className:"h-6 w-6 flex-shrink-0","aria-hidden":!0}),(0,o.jsx)("span",{className:"w-full min-w-0 truncate text-center",style:(0,j.rR)(u?"Explore/Navigation/BodySemiBold":"Body/Regular"),children:e(a)})]}),v=null!=s?s:i,w=v?W(v):void 0;return!w||n?(0,o.jsx)("div",{className:m,style:h,"aria-disabled":"true",children:f},l):(0,o.jsx)(p(),{href:w,target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,className:m,style:h,onClick:()=>{(0,d.logEvent)("explore_card_click",{type:l})},children:f},l)};return(0,o.jsxs)("div",{className:"flex w-full min-w-0 flex-col gap-6",children:[(0,o.jsxs)("nav",{"aria-label":"Explore shortcuts",className:"min-w-0",children:[(0,o.jsxs)("div",{className:"flex w-full min-w-0 flex-col gap-2 lg:hidden",children:[(0,o.jsx)("div",{className:"flex h-20 min-w-0 gap-2",children:k.map(e=>q(e))}),(0,o.jsx)("div",{className:"flex min-w-0 gap-2",children:C.map(e=>q(e))})]}),(0,o.jsx)("div",{className:"scrollbar-hide hidden w-full min-w-0 gap-2 overflow-x-auto lg:flex lg:gap-3 lg:overflow-visible",children:E.map(t=>(0,o.jsxs)("div",{className:"group/menu relative min-w-[168px] flex-1 lg:min-w-0",children:[(t=>{let{titleKey:a,type:l,Icon:r,dropdownItems:n,disabled:i,href:s,openInNewTab:c}=t,u=s?W(s):void 0,m=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r,{className:"h-6 w-6 flex-shrink-0","aria-hidden":!0}),(0,o.jsx)("span",{className:"max-w-[128px] min-w-0 text-left line-clamp-2",style:(0,j.rR)("Explore/Navigation/BodySemiBold"),children:e(a)}),n?(0,o.jsx)(O,{className:"h-4 w-4 flex-shrink-0 transition-transform duration-200 group-hover/menu:-scale-y-100 group-focus-within/menu:-scale-y-100"}):null]}),h=(0,_.cn)("flex h-16 w-full items-center justify-center gap-2 rounded-xl border border-[var(--explore-menu-border)] px-4 transition-colors duration-200 md:h-20 md:px-6",!i&&"hover:border-[var(--explore-menu-active-border)] focus-visible:border-[var(--explore-menu-active-border)]",n&&"group-hover/menu:border-[var(--explore-menu-active-border)] group-focus-within/menu:border-[var(--explore-menu-active-border)]",i&&"cursor-default"),f={"--explore-menu-border":N,"--explore-menu-active-border":T,background:R,color:g};return!u||i?(0,o.jsx)("div",{className:h,style:f,"aria-disabled":"true",children:m}):(0,o.jsx)(p(),{href:u,target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,className:h,style:f,onClick:()=>{(0,d.logEvent)("explore_card_click",{type:l})},children:m})})(t),t.dropdownItems?(0,o.jsx)("div",{className:"pointer-events-none absolute left-0 top-full z-30 w-full min-w-[194px] pt-2 opacity-0 transition-opacity duration-150 group-hover/menu:pointer-events-auto group-hover/menu:opacity-100 group-focus-within/menu:pointer-events-auto group-focus-within/menu:opacity-100",onMouseLeave:()=>n(null),children:(0,o.jsx)("div",{className:"flex flex-col gap-1 overflow-hidden rounded-[10px] p-1 shadow-2xl",style:{backgroundColor:x},children:t.dropdownItems.map(t=>{let a=r===t.type;return(0,o.jsx)(p(),{href:W(t.href),className:"flex items-center rounded-lg px-4 py-2.5 transition-colors duration-150",style:{backgroundColor:a?b:void 0,color:a?g:w,...(0,j.rR)(a?"Body/SemiBold":"Body/Regular")},onClick:()=>{(0,d.logEvent)("explore_card_click",{type:t.type})},onBlur:()=>n(null),onFocus:()=>n(t.type),onMouseEnter:()=>n(t.type),onMouseLeave:()=>n(null),children:(0,o.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e(t.labelKey)})},t.type)})})}):null]},t.type))})]}),(0,o.jsxs)("section",{className:"flex min-w-0 flex-col gap-3","aria-labelledby":"explore-popular-title",children:[(0,o.jsx)("h2",{id:"explore-popular-title",className:"px-0",style:{...(0,j.rR)("Headline/SemiBold"),color:g},children:e("explore.popular.title")}),(0,o.jsxs)("div",{className:"group/popular-scroll relative min-w-0",children:[(0,o.jsx)("div",{ref:v,className:"scrollbar-hide flex min-w-0 gap-3 overflow-x-auto scroll-smooth",children:V.map(t=>{let a=(0,o.jsxs)("div",{className:"group/popular relative h-40 overflow-hidden rounded-xl",children:[t.videoUrl?(0,o.jsx)(f.A,{src:t.videoUrl,rootMargin:"0px",pauseWhenHidden:!0,autoPlay:!0,loop:!0,muted:!0,playsInl
1ine:!0,preload:"none",poster:t.imageUrl,"aria-hidden":"true",className:"absolute inset-0 h-full w-full object-cover transition-transform duration-300 group-hover/popular:scale-105"}):(0,o.jsx)(h.default,{src:t.imageUrl,alt:"",fill:!0,sizes:"(min-width: 1280px) 25vw, (min-width: 768px) 280px, 280px",className:"object-cover transition-transform duration-300 group-hover/popular:scale-105",loading:"lazy"}),(0,o.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex flex-col gap-0.5 p-3",style:{background:"linear-gradient(to bottom, transparent 0%, ".concat(I,"cc 100%)")},children:[(0,o.jsx)("h3",{className:"overflow-hidden text-ellipsis whitespace-nowrap",style:{...(0,j.rR)("Subheadline/SemiBold"),color:L},children:e(t.titleKey)}),(0,o.jsx)("p",{className:"overflow-hidden text-ellipsis whitespace-nowrap",style:{...(0,j.rR)("Caption/Regular"),color:B},children:e(t.descriptionKey)})]})]});return t.href?(0,o.jsx)(p(),{href:W(t.href),target:t.openInNewTab?"_blank":void 0,rel:t.openInNewTab?"noopener noreferrer":void 0,className:"block w-[280px] shrink-0",onClick:()=>{(0,d.logEvent)("explore_card_click",{type:t.type})},children:a},t.type):(0,o.jsx)("div",{className:"w-[280px] shrink-0",children:a},t.type)})}),u.hasOverflow?(0,o.jsx)(M,{direction:"left",disabled:!u.canScrollLeft,fillColor:y,iconColor:S,onClick:()=>P("left")}):null,u.hasOverflow?(0,o.jsx)(M,{direction:"right",disabled:!u.canScrollRight,fillColor:y,iconColor:S,onClick:()=>P("right")}):null]})]})]})});var N=a(62779),T=a(68349),L=a(47650),B=a(86651),I=a(52625);let R=e=>{let{open:t,className:a,onBack:l,onSearch:r}=e;return((0,i.useEffect)(()=>{if(!t)return;let{overflow:e}=document.body.style;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[t]),t&&"undefined"!=typeof document)?(0,L.createPortal)((0,o.jsx)("div",{"aria-modal":"true",className:(0,_.cn)("fixed inset-0 z-[70] bg-[#0A0A0B] md:hidden",a),"data-explore-search-overlay":"true",role:"dialog",style:{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)"},children:(0,o.jsx)("main",{className:"flex h-full flex-col px-6",children:(0,o.jsx)("div",{className:"-mx-6 bg-[#0A0A0B] px-8 py-[18px]",children:(0,o.jsx)(I.A,{variant:"back",onBack:l,onSearch:r,navigationMethod:"replace",searchContext:"mobile_overlay"})})})}),document.body):null};var W=a(60981);let A=e=>{let{onSearch:t,compact:a=!1,displayType:l,titleHeadingLevel:r="h2",showBackButton:n=!1,onBack:s,onTabNavigate:u}=e,{t:m,i18n:p}=(0,c.Bd)(),h=p.language,[f,v]=(0,i.useState)(!1),g=(0,W.Fo)(),w=(0,T.O)(e=>e.templateType),x=null!=l?l:w,b=(0,T.O)(e=>e.templateAllCategory),y=(0,T.O)(e=>e.templateVideoCategory),E=(0,T.O)(e=>e.templateImageCategory),k=(0,T.O)(e=>e.setTemplateType),C=(0,i.useMemo)(()=>"/".concat(h,"/search"),[h]),V=(0,j.hm)("a_Backgrounds/SegmentedControl"),O=(0,j.hm)("a_Backgrounds/SegmentedControlActive"),M=(0,j.hm)("a_Labels/SegmentedControlActive"),S=(0,j.hm)("a_Labels/Primary"),N=(0,j.hm)("a_Labels/Secondary"),A=(0,j.hm)("a_Separators/Opaque"),P=(0,j.hm)("a_Fill/Secondary"),q={backgroundColor:(0,j.hm)("a_Fill/Secondary"),color:N},H=(0,j.rR)("Headline/SemiBold",{platform:"ios"}),z=(0,j.rR)("Headline/SemiBold"),F=(0,j.rR)("Subheadline/SemiBold",{platform:"ios"}),G=(0,j.rR)("Subheadline/Regular",{platform:"ios"}),K=(0,i.useCallback)(()=>{var e;v(window.location.pathname===C&&!window.location.search&&(null==(e=window.history.state)?void 0:e.exploreSearchOverlay)===!0)},[C]);(0,i.useEffect)(()=>(window.addEventListener("popstate",K),()=>{window.removeEventListener("popstate",K)}),[K]);let U=(0,i.useCallback)(()=>{(0,d.logEvent)("explore_search_overlay",{action:"open"}),window.history.pushState({exploreSearchOverlay:!0},"",C),(0,L.flushSync)(()=>{v(!0)});let e=document.querySelector('[data-explore-search-overlay="true"] input[type="text"]');if(e){e.focus({preventScroll:!0});try{let t=e.value.length;e.setSelectionRange(t,t)}catch(e){}}},[C]),D=(0,i.useCallback)(()=>{window.history.back()},[]),Z=[{label:m("all"),value:"all",path:b?"all/".concat(b.replaceAll("_","-")):"all"},{label:m("video"),value:"aiVideoI2V,aiVideoT2V",path:y?"ai-video/".concat(y.replaceAll("_","-")):"ai-video"},{label:m("image"),value:"aiGeneral",path:E?"ai-image/".concat(E.replaceAll("_","-")):"ai-image"},{label:m("headshot"),value:"aiHeadshot,aiHeadshotV2",path:"ai-headshot"}];return(0,o.jsxs)("div",{className:"flex min-w-0 flex-col",children:[a?null:(0,o.jsx)(r,{className:"px-0",style:{...g?z:H,color:S},children:m("explore.inspirations.title")}),(0,o.jsxs)("div",{className:(0,_.cn)("mt-4 mb-0 flex items-center gap-2 md:my-5 md:gap-3",a&&"my-4 md:my-4 md:gap-6"),children:[n?(0,o.jsx)("button",{type:"button","aria-label":m("back"),
1className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg transition-opacity hover:opacity-80",style:q,onClick:s,children:(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):null,(0,o.jsx)("div",{className:"scrollbar-hide flex h-10 min-w-0 flex-1 items-center overflow-x-auto rounded-[10px] border p-0.5 md:h-9 md:flex-none md:overflow-visible md:rounded-lg",style:{backgroundColor:V,borderColor:A},children:(0,o.jsx)("div",{className:"flex h-9 w-full items-center md:h-8 md:w-auto",children:Z.map(e=>{let t=x===e.value;return(0,o.jsxs)("button",{type:"button","aria-pressed":t,onClick:()=>{var a,l;(0,d.logEvent)("explore_module_tab_click",{type:null==(l=e.path)||null==(a=l.split("/"))?void 0:a[0]}),t||(k(e.value),null==u||u())},className:"flex h-9 min-w-0 flex-1 cursor-pointer items-center justify-center rounded-lg px-2 transition-colors hover:bg-[var(--explore-tab-hover-bg)] md:h-8 md:min-w-[98px] md:flex-none md:rounded-md md:px-4",style:{"--explore-tab-hover-bg":P,backgroundColor:t?O:void 0,color:t?M:N},children:[(0,o.jsx)("span",{className:"md:hidden",style:t?F:G,children:e.label}),(0,o.jsx)("span",{className:"hidden md:inline",style:(0,j.rR)(t?"Explore/Navigation/BodySemiBold":"Explore/Navigation/BodyRegular"),children:e.label})]},e.value)})})}),(0,o.jsx)("button",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-[10px] border transition-colors hover:bg-[var(--explore-search-hover-bg)] md:hidden","aria-label":m("search"),style:{"--explore-search-hover-bg":P,borderColor:A,color:N},onClick:()=>{U()},children:(0,o.jsx)(B.A,{size:20,strokeWidth:2})}),(0,o.jsx)("div",{className:"hidden md:flex items-center shrink-0",children:(0,o.jsx)(I.A,{})})]}),(0,o.jsx)(R,{open:f,onBack:D,onSearch:t})]})};function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let q=function(e){return i.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),r||(r=i.createElement("path",{fill:"#2E2D38",d:"M12 2c5.51 0 10 4.49 10 10s-4.49 10-10 10S2 17.51 2 12 6.49 2 12 2"})),n||(n=i.createElement("path",{fill:"#EBEBF5",fillOpacity:.6,d:"m12.74 16.06-3.53-3.53c-.3-.29-.3-.77 0-1.06l3.53-3.53c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-3 3 3 3c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22"})))};var H=a(5523),z=a(95704);let F=0,G=[52,86,64,96,72,58],K=e=>{if("undefined"!=typeof requestIdleCallback){let t=requestIdleCallback(()=>e(),{timeout:2e3});return()=>cancelIdleCallback(t)}let t=window.setTimeout(()=>e(),100);return()=>clearTimeout(t)},U=e=>{let{arrowDirection:t="left",onClick:a}=e;return(0,o.jsx)("button",{className:"cursor-pointer w-6 h-6 flex items-center justify-center",onClick:a,children:(0,o.jsx)(q,{className:(0,_.cn)("","left"===t?"rotate-0":"rotate-180")})})},D=()=>{let e=(0,j.hm)("a_Fill/Tertiary"),t=(0,j.hm)("a_Fill/Secondary"),a="linear-gradient(90deg, ".concat(e," 0%, ").concat(t," 50%, ").concat(e," 100%)");return(0,o.jsx)("div",{className:"relative mt-4 mb-2 w-full min-w-0 pr-0 md:mt-0 md:mb-4 md:pr-20","aria-hidden":!0,children:(0,o.jsx)("div",{className:"w-full overflow-x-auto scrollbar-hide",children:(0,o.jsx)("div",{className:"flex min-w-max items-start gap-10",children:G.map(e=>(0,o.jsx)("div",{className:"h-[18px] shrink-0 animate-pulse rounded-full md:h-5",style:{width:e,background:a}},e))})})})},Z=e=>{let{onTabNavigate:t,initialCategories:a,displayType:l,displayCategory:r}=e,{i18n:n,t:s}=(0,c.Bd)(),u=n.language,m=(0,i.useRef)(null),p=(0,i.useRef)(new Map),[h,f]=(0,i.useState)(!1),v=(0,T.O)(e=>e.templateType),g=null!=l?l:v,w=(null==a?void 0:a.type)===g?a.options:void 0,x=(0,T.O)(e=>e.templateVideoCategory),b=(0,T.O)(e=>e.templateImageCategory),y=(0,T.O)(e=>e.templateAllCategory),E=(0,T.O)(e=>e.setTemplateVideoCategory),k=(0,T.O)(e=>e.setTemplateImageCategory),C=(0,T.O)(e=>e.setTemplateAllCategory),V=(0,T.O)(e=>e.modules),O=(0,T.O)(e=>e.modulesLoading),M=(0,T.O)(e=>e.modulesFetched),S=(0,T.O)(e=>e.fetchModules),N=(0,T.O)(e=>e.videoModules),L=(0,T.O)(e=>e.videoModulesLoading),B=(0,T.O)(e=>e.videoModulesFetched),I=(0,T.O)(e=>e.fetchVideoModules),R=(0,T.O)(e=>e.imageModules),W=(0,T.O)(e=>e.imageModulesLoading),A=(0,T.O)(e=>e.imageModulesFetched),P=(0,T.O)(e=>e.fetchImageModules);(0,i.useEffect)(()=>
1{if(!w&&"all"===g&&!M&&!O)return K(()=>{T.O.getState().modulesFetched||T.O.getState().modulesLoading||S()})},[w,g,M,O,S]),(0,i.useEffect)(()=>{if(!w&&"aiVideoI2V,aiVideoT2V"===g&&!B&&!L)return K(()=>{let e=T.O.getState();e.videoModulesFetched||e.videoModulesLoading||I()})},[w,g,B,L,I]),(0,i.useEffect)(()=>{if(!w&&"aiGeneral"===g&&!A&&!W)return K(()=>{let e=T.O.getState();e.imageModulesFetched||e.imageModulesLoading||P()})},[w,g,A,W,P]);let q=(0,i.useMemo)(()=>{if(w)return w;if("all"===g){let e=(e=>{var t;let a=null==(t=z.env.NEXT_PUBLIC_EXPLORE_AI_EFFECTS_MODULE_UNIQUE_ID)?void 0:t.trim();if(a){let t=e.find(e=>e.uniqueId===a);if(t)return t.uniqueId}let l=H.dh,r=e.find(e=>e.uniqueId.replaceAll("_","-").toLowerCase()===l);return null==r?void 0:r.uniqueId})(V);return V.filter(e=>e.displayTemplates&&e.displayTemplates.length>0).map(t=>{var a,l;return{label:t.uniqueId===e?((e,t,a)=>{var l,r,n,o;return(null==e||null==(n=e.languages)||null==(r=n.title)||null==(l=r[t])?void 0:l.trim())||("en"===t?null==e||null==(o=e.title)?void 0:o.trim():"")||a})(t,u,s("ai_effects")):(null==t||null==(l=t.languages)||null==(a=l.title)?void 0:a[u])||t.title,value:t.uniqueId,path:t.uniqueId}})}return"aiVideoI2V,aiVideoT2V"===g?N.filter(e=>e.displayTemplates&&e.displayTemplates.length>0).map(e=>{var t,a;return{label:(null==e||null==(a=e.languages)||null==(t=a.title)?void 0:t[u])||e.title,value:e.uniqueId,path:e.uniqueId}}):"aiGeneral"===g?R.filter(e=>e.displayTemplates&&e.displayTemplates.length>0).map(e=>{var t,a;return{label:(null==e||null==(a=e.languages)||null==(t=a.title)?void 0:t[u])||e.title,value:e.uniqueId,path:e.uniqueId}}):[]},[w,g,V,N,R,u,s]),G=(0,i.useMemo)(()=>void 0!==r?r:"all"===g?y:"aiVideoI2V,aiVideoT2V"===g?x:"aiGeneral"===g?b:"",[r,g,y,x,b]),Z=(0,j.rR)("Body/Medium",{platform:"ios"}),Y=(0,j.rR)("Body/Medium"),J=(0,j.hm)("a_Labels/Primary"),Q=(0,j.hm)("a_Labels/Secondary"),X="linear-gradient(90deg, transparent 0%, ".concat((0,j.hm)("a_Backgrounds/GeneratePanel")," 70%)"),$=!w&&("all"===g&&!M||"aiVideoI2V,aiVideoT2V"===g&&!B||"aiGeneral"===g&&!A),ee=e=>{if(!m.current)return;let t=m.current.clientWidth,a=m.current.scrollLeft;m.current.scrollTo({left:"left"===e?a-t:a+t,behavior:"smooth"})},et=(0,i.useCallback)(()=>{if(!m.current||!G)return;let e=p.current.get(G);if(!e)return;let t=m.current,a=e.offsetLeft,l=e.offsetWidth,r=t.clientWidth;t.scrollTo({left:Math.max(0,a-r/2+l/2),behavior:"smooth"})},[G]);return((0,i.useEffect)(()=>{if(q.length>0&&G&&!h){let e=m.current;e&&0===e.scrollLeft&&F>0&&(e.scrollLeft=F);let t=setTimeout(()=>{et(),F=0,f(!0)},100);return()=>clearTimeout(t)}},[q.length,G,h,et]),(0,i.useEffect)(()=>{f(!1)},[g]),0===q.length)?$?(0,o.jsx)(D,{}):(0,o.jsx)("div",{className:"mt-4 mb-2 h-[18px] w-full md:mt-0 md:mb-4 md:h-6"}):(0,o.jsxs)("div",{className:"relative mt-4 mb-2 w-full min-w-0 pr-0 md:mt-0 md:mb-4 md:pr-20",children:[(0,o.jsx)("div",{ref:m,className:"w-full overflow-x-auto scrollbar-hide",children:(0,o.jsx)("div",{className:"flex min-w-max items-start gap-10",children:q.map(e=>(0,o.jsxs)("button",{type:"button","aria-pressed":G===e.value,ref:t=>{t&&p.current.set(e.value,t)},onClick:()=>{(0,d.logEvent)("explore_module_category_click",{type:e.path}),m.current&&(F=m.current.scrollLeft),G!==e.value&&("all"===g?C(e.value):"aiVideoI2V,aiVideoT2V"===g?E(e.value):"aiGeneral"===g&&k(e.value),null==t||t())},className:(0,_.cn)("flex h-[18px] cursor-pointer items-center justify-center whitespace-nowrap transition-colors hover:text-[var(--explore-category-hover-color)] md:h-auto"),style:{"--explore-category-hover-color":J,color:G===e.value?J:Q},children:[(0,o.jsx)("span",{className:"md:hidden",style:Z,children:e.label}),(0,o.jsx)("span",{className:"hidden md:inline",style:Y,children:e.label})]},e.value))})}),(0,o.jsxs)("div",{className:"absolute right-0 top-0 hidden h-full w-17 items-center justify-end gap-1 md:flex",style:{background:X},children:[(0,o.jsx)(U,{arrowDirection:"left",onClick:()=>ee("left")}),(0,o.jsx)(U,{arrowDirection:"right",onClick:()=>ee("right")})]})]})};var Y=a(84543),J=a(44369),Q=a(23303);let X={all:"all","aiVideoI2V,aiVideoT2V":"video",aiGeneral:"image","aiHeadshot,aiHeadshotV2":"headshot"},$="exploreSelection",ee=Math.random().toString(36).slice(2);function et(){var e;let t=null==(e=window.history.state)?void 0:e[$];if((null==t?void 0:t.documentSession)===ee&&t.href==="".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash)&&Object.hasOwn(X,t.type)&&"string"==typeof t.category)return{type:t.type,category:t.category}}var ea=a(89209);let el=[],er="aiHeadshot,aiHeadshotV2_",en="explorePendingWaterfallResetTop",eo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,a=new Set,l=[];for(let r of e)for(let e of r.displayTemplates||[])if(!a.has(e.uniqueId)&&(a.add(e.uniqueId),l.push(e),l.length>=t))return l;return l},ei=(0,i.memo)(function(e){let{title:t,templates:a,templateType:l,onViewAll:r}=e,n=(0,i.useCallback)(()=>r(l),[r,l]);return 0===a.length?null:(0,o.jsxs)("section",{className:"mt-8 md:mt-10",children:[(0,o.jsx)("div",{className:"mb-6 flex flex-col items-start justify-center px-1 pt-2 md:px-0",children:(0,o.jsx)("h2",{style:{color:(0,j.hm)("a_Labels/Primary"),...(0,j.rR)("Title2/Bold")},children:t})}),(0,o.jsx)(Y.A,{className:"min-h-0",staticTemplates:a,previewMode:!0,previewRows:2,onPreviewViewAll:n,listSource:"explore",keepPreviewModeOnReturn:!0})]})}),es=e=>{let{title:t}=e,a=(0,Y.j)(),l=(0,i.useMemo)(()=>{let e=Array.from({length:a},()=>[]),t=2*a;for(let l=0;l<t;l+=1)e[l%a].push(l);return e},[a]),r={background:"linear-gradient(90deg, ".concat((0,j.hm)("a_Backgroun
1ds/Primary")," 0%, ").concat((0,j.hm)("a_Backgrounds/Tertiary")," 50%, ").concat((0,j.hm)("a_Backgrounds/Primary")," 100%)")};return(0,o.jsxs)("section",{className:"mt-8 md:mt-10","aria-hidden":"true",children:[(0,o.jsx)("div",{className:"mb-6 flex flex-col items-start justify-center px-1 pt-2 md:px-0",children:(0,o.jsx)("h2",{style:{color:(0,j.hm)("a_Labels/Primary"),...(0,j.rR)("Title2/Bold")},children:t})}),(0,o.jsx)("div",{className:"flex gap-2",children:l.map((e,a)=>(0,o.jsx)("div",{className:"flex w-full flex-col gap-2 rounded-md",children:e.map(e=>(0,o.jsx)("div",{className:"relative aspect-[2/3] overflow-hidden rounded-lg",style:r},"".concat(t,"-").concat(e)))},a))})]})};function ec(e){var t,a,l;let{syncQueryPath:r,initialCategories:n,initialTemplateType:m,initialTemplateVideoCategory:p,initialTemplateImageCategory:h,initialTemplateAllCategory:f,initialTemplates:v,initialTemplatesSettled:g=!1,initialTemplatesArePreview:w=!1,serverResolvedCategory:x,hideTopBanners:b=!1,inspirationsHeadingLevel:y="h2",hideExploreTabsAndCategories:_=!1,prioritizeFirstRowPosters:E=!0,balanceWaterfallByAspectRatio:k=!1}=e,{t:C,i18n:V}=(0,c.Bd)(),O=V.language,M=(0,s.usePathname)(),L=(0,i.useRef)(null),B=(0,i.useRef)(null),I=(0,i.useRef)(null),R=(0,i.useRef)(null),W=(0,i.useRef)(null),P=(0,i.useRef)(!1),q=(0,T.O)(e=>e.setTemplateType),H=(0,T.O)(e=>e.setTemplateVideoCategory),z=(0,T.O)(e=>e.setTemplateImageCategory),F=(0,T.O)(e=>e.setTemplateAllCategory),G=(0,T.O)(e=>e.initTemplateDataWithInitial),K=(0,T.O)(e=>e.initTemplateData),U=(0,T.O)(e=>e.fetchVideoModules),D=(0,T.O)(e=>e.fetchImageModules),ec=(0,T.O)(e=>e.templateVideoCategory),ed=(0,T.O)(e=>e.templateImageCategory),eu=(0,T.O)(e=>e.templateAllCategory),em=(0,T.O)(e=>{var t,a;return null!=(a=null==(t=e.templateData[er])?void 0:t.templates)?a:el}),ep=(0,T.O)(e=>e.videoModulesFetched),eh=(0,T.O)(e=>e.imageModulesFetched),ef=(0,T.O)(e=>e.templateData[er]),ev=(0,i.useRef)(null),eg=(0,i.useCallback)(e=>{if(!m)return;let t=T.O.getState(),a="all"===m?f||x||t.templateAllCategory||"":"aiVideoI2V,aiVideoT2V"===m?p||x||t.templateVideoCategory||"":"aiGeneral"===m&&(h||x||t.templateImageCategory)||"";if(("all"===m||"aiVideoI2V,aiVideoT2V"===m||"aiGeneral"===m)&&!a)return;let l="".concat(M,"|").concat(m,"|").concat(a);ev.current!==l&&(ev.current=l,(0,d.logEvent)("explore_page_show",{temp_page:1,type:m,category:a,loading_time:e.loadingTimeMs}),(0,u.e)("explore_page_show temp_page=1 (list first paint)",{loading_time_ms:e.loadingTimeMs,type:m,category:a,pathname:M}))},[M,m,f,p,h,x]),ew=null!=(l=null!=(a=null!=(t=null!=f?f:p)?t:h)?a:x)?l:"",ex="".concat(null!=m?m:"",":").concat(ew),[eb,ey]=(0,i.useState)(null),e_=eb!==ex;(0,i.useLayoutEffect)(()=>{var e,t;if(!e_)return;let a=r===window.location.pathname?et():void 0,l=null!=(e=null==a?void 0:a.type)?e:m,n=null!=(t=null==a?void 0:a.category)?t:ew;P.current=!!a,a&&eV(!0),l&&q(l),"all"===l&&F(n),"aiVideoI2V,aiVideoT2V"===l&&H(n),"aiGeneral"===l&&z(n),l===m&&n===ew&&v&&(v.length>0||g)&&m&&G(m,ew,v,{source:w?"server-preview":"server"}),ey(ex)},[ex,w]);let ej=(0,T.O)(e=>e.templateType),eE=(0,T.O)(e=>e.videoModules),ek=(0,T.O)(e=>e.imageModules),[eC,eV]=(0,i.useState)(!1),eO=eC?ej:null!=m?m:ej,eM=!b&&!_&&("aiVideoI2V,aiVideoT2V"===eO||"all"===eO||"aiGeneral"===eO||"aiHeadshot,aiHeadshotV2"===eO),[eS,eN]=(0,i.useState)(eM),[eT,eL]=(0,i.useState)(!1),eB=eM&&!eS,eI="all"===eO&&eM&&eS&&!b&&!_,eR=em.length>0||!!ef&&!(null==ef?void 0:ef.isLoading),eW=(0,i.useMemo)(()=>eo(eE),[eE]),eA=(0,i.useMemo)(()=>eo(ek),[ek]);(0,i.useEffect)(()=>{if(!("scrollRestoration"in window.history))return;let e=window.history.scrollRestoration;return window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration=e}},[]),(0,i.useEffect)(()=>{eV(r===window.location.pathname&&!!et());let e=sessionStorage.getItem(ea.Oq);if(!e){W.current=null,eN(eM);return}let t="1"===sessionStorage.getItem(ea.gm);sessionStorage.removeItem(ea.gm),W.current={scrollY:parseInt(e,10),keepPreviewMode:t,source:"return"},eN(!!t&&eM)},[M,eM,ex,r]),(0,i.useEffect)(()=>{let e=W.current;if(!e||!(!eM||e.keepPreviewMode||!eS))return;let t=!1,a=null,l=0,r=()=>{if(t)return;let n=document.documentElement,o=window.innerHeight,i=Math.max(0,n.scrollHeight-o)>=e.scrollY,s=l>=60;if(i||s){W.current=null,"return"===e.source&&sessionStorage.removeItem(ea.Oq),window.scrollTo({top:e.scrollY,behavior:"instant"});return}l+=1,a=window.setTimeout(r,50)};return a=window.setTimeout(r,50),()=>{t=!0,null!==a&&window.clearTimeout(a)}},[eS,eM]),(0,i.useEffect)(()=>
1{if(!eI||eT||ep&&eh&&eR)return;let e=B.current;if(!e||"undefined"==typeof IntersectionObserver)return void eL(!0);let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(eL(!0),t.disconnect())},{rootMargin:"400px 0px"});return t.observe(e),()=>t.disconnect()},[eR,eh,eT,eI,ep]),(0,i.useEffect)(()=>{var e;if(!eI||!eT)return;let t=T.O.getState();t.videoModulesFetched||t.videoModulesLoading||U(),t.imageModulesFetched||t.imageModulesLoading||D(),(null==(e=t.templateData[er])?void 0:e.templates.length)||K("aiHeadshot,aiHeadshotV2","")},[D,U,K,eT,eI]),(0,i.useLayoutEffect)(()=>{var e;let t=R.current;if(null===t||eS)return;R.current=null;let a=null==(e=L.current)?void 0:e.getBoundingClientRect().top;void 0!==a&&window.scrollBy({top:a-t,behavior:"auto"})},[eS]),(0,i.useLayoutEffect)(()=>{var e;let t=sessionStorage.getItem(en);if(!t)return;sessionStorage.removeItem(en);let a=Number(t),l=null==(e=L.current)?void 0:e.getBoundingClientRect().top;Number.isFinite(a)&&void 0!==l&&window.scrollBy({top:l-a,behavior:"auto"})},[M,ej,eu,ec,ed,m,f,p,h,x]);let eP={"--explore-sticky-bar-bg":"color-mix(in srgb, ".concat((0,j.hm)("a_Backgrounds/Page")," 95%, transparent)")},eq=(0,i.useCallback)(()=>{if(!r||window.location.pathname!==r)return;let e=T.O.getState(),t="all"===e.templateType?e.templateAllCategory:"aiVideoI2V,aiVideoT2V"===e.templateType?e.templateVideoCategory:"aiGeneral"===e.templateType?e.templateImageCategory:"";!function(e,t){let a=function(e,t,a){let l=new URL(e);return l.searchParams.set("type",X[t]),a&&"aiHeadshot,aiHeadshotV2"!==t?l.searchParams.set("category",a):l.searchParams.delete("category"),"".concat(l.pathname).concat(l.search).concat(l.hash)}(window.location.href,e,t),l=et();if((null==l?void 0:l.type)===e&&l.category===t&&a==="".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash))return;let r={...window.history.state};delete r.__NA,delete r._N,window.history.replaceState({...r,[$]:{type:e,category:t,href:a,documentSession:ee}},"",a)}(e.templateType,t)},[r]);(0,i.useEffect)(()=>{P.current&&eq()},[M,ej,eu,ec,ed,eq]);let eH=(0,i.useCallback)(()=>{var e,t,a;P.current=!0,eq(),sessionStorage.removeItem(ea.Oq),eV(!0);let l=null==(e=L.current)?void 0:e.getBoundingClientRect().top,r=null!=(a=null==(t=I.current)?void 0:t.getBoundingClientRect().height)?a:0,n=void 0!==l&&l>=0?l:(window.innerWidth<768?56:68)+r;sessionStorage.setItem(en,String(Math.max(0,Math.round(n))))},[eq]),ez=(0,i.useCallback)(e=>{q(e),eH()},[eH,q]),eF=(0,i.useCallback)(()=>{var e,t;sessionStorage.removeItem(ea.Oq),R.current=null!=(t=null==(e=L.current)?void 0:e.getBoundingClientRect().top)?t:null,eN(!1)},[]),eG=f||p||h||x||"",eK="all"===ej?eu||x||"":"aiVideoI2V,aiVideoT2V"===ej?ec||x||"":"aiGeneral"===ej?ed||x||"":"aiHeadshot,aiHeadshotV2"===ej&&x||"",eU=e_||ej===m&&("aiHeadshot,aiHeadshotV2"===ej||eK===eG),eD=eU?v:void 0,eZ=eU?x:void 0;return(0,o.jsxs)("div",{className:"flex min-w-0 flex-col p-4 sm:p-8",children:[b||eB?null:(0,o.jsx)("div",{className:"mb-4 md:mb-6",children:(0,o.jsx)(S,{})}),_?null:(0,o.jsx)("div",{ref:I,className:"md:-mx-8",style:eP,children:(0,o.jsxs)(N.A,{className:"-mx-4 bg-[var(--explore-sticky-bar-bg)] px-4 py-2 backdrop-blur-[25px] sm:-mx-8 sm:px-8 md:mx-0 md:bg-transparent md:px-8 md:py-0 md:backdrop-blur-none md:data-[pinned=true]:py-2 md:data-[pinned=true]:bg-[var(--explore-sticky-bar-bg)] md:data-[pinned=true]:backdrop-blur-[25px]",children:[(0,o.jsx)(A,{compact:eB,displayType:e_?m:void 0,titleHeadingLevel:y,showBackButton:eB,onTabNavigate:eH,onBack:()=>{eN(!0)}}),_||"aiVideoI2V,aiVideoT2V"!==eO&&"all"!==eO&&"aiGeneral"!==eO?null:(0,o.jsx)(Z,{initialCategories:n,displayType:e_?m:void 0,displayCategory:e_?ew:void 0,onTabNavigate:eH})]})}),(0,o.jsx)("div",{ref:L,className:"min-h-0",children:(0,o.jsx)(Y.A,{className:"min-h-[130vh]",initialTemplates:eD,templateTypeOverride:e_?m:void 0,categoryOverride:e_?ew:void 0,serverResolvedCategory:eZ,onExploreListFirstReady:eg,previewMode:eS,previewRows:3,onPreviewViewAll:eF,keepPreviewModeOnReturn:eS,prioritizeFirstRowPosters:E,balanceColumnsByAspectRatio:k},"".concat(M,"-").concat(null!=m?m:""))}),eI?(0,o.jsxs)("div",{ref:B,className:"flow-root",children:[ep?(0,o.jsx)(ei,{title:C("video"),templates:eW,templateType:"aiVideoI2V,aiVideoT2V",onViewAll:ez}):(0,o.jsx)(es,{title:C("video")}),eh?(0,o.jsx)(ei,{title:C("image"),templates:eA,templateType:"aiGeneral",onViewAll:ez}):(0,o.jsx)(es,{title:C("image")}
1),eR?(0,o.jsx)(ei,{title:C("headshot"),templates:em,templateType:"aiHeadshot,aiHeadshotV2",onViewAll:ez}):(0,o.jsx)(es,{title:C("headshot")})]}):null,eS?(0,o.jsx)(Q.default,{locale:O,layoutVariant:"explore",variant:"dark",className:"-mx-4 mt-2 !bg-transparent sm:-mx-8 md:mt-6",seoMarketingEntrances:!0,disableReveal:!0,showTaaftBadge:!0}):null,(0,o.jsx)(J.A,{})]})}},78506:(e,t,a)=>{a.d(t,{Zm:()=>r,cG:()=>m,mJ:()=>p});var l=a(90250);let r="viewport-metrics-change",n=!1,o=null,i=null,s=null,c=null;function d(){var e,t;let a=window.visualViewport,r=null!=(e=null==a?void 0:a.height)?e:window.innerHeight,n=Math.max(null!=(t=null==a?void 0:a.offsetTop)?t:0,0),o=Math.max((document.documentElement.clientHeight||window.innerHeight)-r-n,0),s=null==i?void 0:i.getBoundingClientRect();return{height:r,offsetTop:s?Math.max(-s.top,0):n,offsetBottom:(0,l.isIOSSafari)()?0:o}}function u(){var e;e=d(),null!==o&&cancelAnimationFrame(o),o=requestAnimationFrame(()=>{!function(e){var t,a,n,o;let i=(a=e.height,n=s,(0,l.isIOS)()&&((t=document.activeElement)instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?!t.disabled&&!t.readOnly:t instanceof HTMLElement&&t.isContentEditable)&&null!==n?n:a),d=null!==c&&.5>Math.abs((o=c).height-e.height)&&.5>Math.abs(o.offsetTop-e.offsetTop)&&.5>Math.abs(o.offsetBottom-e.offsetBottom),u=null!==s&&.5>Math.abs(s-i);if(d&&u)return;let m=document.documentElement;s=i,c=e,m.style.setProperty("--vh","".concat(e.height,"px")),m.style.setProperty("--feature-layout-vh","".concat(s,"px")),m.style.setProperty("--viewport-offset-top","".concat(e.offsetTop,"px")),m.style.setProperty("--viewport-offset-bottom","".concat(e.offsetBottom,"px")),window.dispatchEvent(new CustomEvent(r,{detail:e}))}(e),o=null})}function m(){n||("undefined"!=typeof document&&(i||(i=function(){let e=document.createElement("div");return e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="0",e.style.height="0",e.style.pointerEvents="none",e.style.visibility="hidden",e.style.zIndex="-1",e.style.contain="strict",e}(),document.body.appendChild(i))),u(),window.visualViewport&&(window.visualViewport.addEventListener("resize",u,{passive:!0}),window.visualViewport.addEventListener("scroll",u,{passive:!0})),window.addEventListener("resize",u,{passive:!0}),window.addEventListener("scroll",u,{passive:!0}),n=!0)}function p(){return d().height}},81132:(e,t,a)=>{a.d(t,{FK:()=>p,Jv:()=>m,KS:()=>f,Oy:()=>s,_D:()=>w,mz:()=>o,nu:()=>g,q7:()=>d,u$:()=>v,zS:()=>h});var l=a(60080),r=a(4602);let n="welcome_bottom_entrance_click",o=e=>{if(null==e||""===e)return!1;let t=(e.replace(/\/$/,"")||"/").split("/").filter(Boolean);return 2===t.length&&"welcome"===t[1]&&r.IB.includes(t[0])},i=[...r.IB].sort((e,t)=>t.length-e.length),s=e=>{let t=e.startsWith("/")?e:"/".concat(e);for(let e of i){if(t==="/".concat(e))return"/";if(t.startsWith("/".concat(e,"/"))){let a=t.slice("/".concat(e).length);return a.startsWith("/")?a:"/".concat(a)}}return t},c=["/alternatives/a2e-ai","/about","/plans-pricing","/seedance-2-0","/m/seedance/seedance-2","/m/gpt/gpt-image-2","/nano-banana-2","/m/nanobanana/nano-banana-2","/ai-dance","/ai-illust-generator","/model","/m","/apps"],d=e=>{if(!e)return!1;if(o(e))return!0;let t=s(e).toLowerCase();return c.some(e=>t===e||t.startsWith("".concat(e,"/")))},u=e=>{if(!e)return"unknown";if(o(e))return"welcome_home";let t=s(e).toLowerCase();return"/alternatives/a2e-ai"===t?"a2e_ai":"/about"===t||t.startsWith("/about/")?"about":"/plans-pricing"===t||t.startsWith("/plans-pricing/")?"plans_pricing":"/seedance-2-0"===t||t.startsWith("/seedance-2-0/")||"/m/seedance/seedance-2"===t||t.startsWith("/m/seedance/seedance-2/")?"seedance_2_0":"/m/gpt/gpt-image-2"===t||t.startsWith("/m/gpt/gpt-image-2/")?"gpt_image_2":"/nano-banana-2"===t||t.startsWith("/nano-banana-2/")||"/m/nanobanana/nano-banana-2"===t||t.startsWith("/m/nanobanana/nano-banana-2/")?"nano_banana_2":"/ai-dance"===t||t.startsWith("/ai-dance/")||"/apps/ai-dance-generator"===t||t.startsWith("/apps/ai-dance-generator/")?"ai_dance":"/ai-illust-generator"===t||t.startsWith("/ai-illust-generator/")?"ai_illust_generator":"/model"===t||t.startsWith("/model/")||"/m"===t||t.startsWith("/m/")?"model_landing":"/apps"===t||t.startsWith("/apps/")?"apps_landing":"other"},m=(e,t)=>
1{d(e)&&(0,l.logEvent)("welcome_top_entrance_click",{entrance:t,source_page:u(e)})},p=e=>{d(e)&&(0,l.logEvent)("welcome_creative_studio_show",{source_page:u(e)})},h=e=>{d(e)&&(0,l.logEvent)("welcome_top_entrance_click",{entrance:"creative_studio",source_page:u(e)})},f=(e,t)=>{let a=null!=t?u(t):void 0;(0,l.logEvent)("welcome_main_entrance_click",{entrance:e,...a?{source_page:a}:{}})},v=e=>{switch(e){case"aiVideoI2V":return"i2v";case"aiVideoR2V":return"r2v";case"aiVideoT2V":return"t2v";case"aiGeneral":case"aiHeadshot":case"aiHeadshotV2":return"i2i";case"textToImage":return"t2i";default:return"template"}},g=e=>{let t=e.toLowerCase();return"/"===t||"/explore"===t||t.startsWith("/explore/")?"explore":t.startsWith("/ai-video/image-to-video")?"i2v":t.startsWith("/ai-video/reference-to-video")?"r2v":t.startsWith("/ai-video/text-to-video")?"t2v":t.startsWith("/ai-image/image-to-image")?"i2i":t.startsWith("/ai-image/text-to-image")?"t2i":null},w=(e,t,a)=>{let r=((e,t)=>{let a="/".concat(t);return e===a||"/"===e?"/":e.startsWith("".concat(a,"/"))?e.slice(a.length):e})(e.startsWith("http")?new URL(e).pathname:e,t).toLowerCase(),o=r.startsWith("/")?r:"/".concat(r),i=null!=a?u(a):void 0,c=i?{source_page:i}:{};if(o.startsWith("/ai-video/image-to-video"))return void(0,l.logEvent)(n,{entrance:"video",...c});if(o.startsWith("/ai-image/text-to-image"))return void(0,l.logEvent)(n,{entrance:"image",...c});if(o.startsWith("/seedance-2-0")||o.startsWith("/m/seedance/seedance-2"))return void(0,l.logEvent)(n,{entrance:"seedance",...c});if(o.startsWith("/m/gpt/gpt-image-2"))return void(0,l.logEvent)(n,{entrance:"gpt_image_2",...c});if(o.startsWith("/nano-banana-2")||o.startsWith("/m/nanobanana/nano-banana-2"))return void(0,l.logEvent)(n,{entrance:"nano",...c});let d=(e=>{try{let t=new URL(e,"https://collart.ai"),a=s(t.pathname).toLowerCase();if("/"===a||"/explore"===a||a.startsWith("/explore/"))return"explore";if("/mobile-download"===a||a.startsWith("/mobile-download/"))return"download";if(a.startsWith("/plans-pricing"))return"pricing";if(a.startsWith("/seedance-2-0")||a.startsWith("/m/seedance/seedance-2"))return"studio_seedance";if(a.startsWith("/m/gpt/gpt-image-2"))return"studio_gpt_image_2";if(a.startsWith("/nano-banana-2")||a.startsWith("/m/nanobanana/nano-banana-2"))return"studio_nano";if(a.startsWith("/ai-video/image-to-video"))return"studio_i2v";
1if(a.startsWith("/ai-video/text-to-video"))return"studio_t2v";if(a.startsWith("/ai-image/image-to-image"))return"studio_i2i";if(a.startsWith("/ai-image/text-to-image"))return"studio_t2i";if(a.startsWith("/ai-tools/video-enhancer"))return"studio_video_enhancer";if(a.startsWith("/ai-tools/video-watermark-remover"))return"studio_watermark_remover";if(a.startsWith("/ai-tools/image-expand"))return"studio_expand";if(a.startsWith("/ai-tools/remove-objects"))return"studio_object_remoal";if(a.startsWith("/ai-tools/face-swap"))return"studio_faceswap";if(a.startsWith("/ai-dance")||a.startsWith("/apps/ai-dance-generator"))return"studio_dance";if(a.startsWith("/ai-illust-generator"))return"studio_illust_generator";return null}catch(e){return null}})("https://x.com".concat(o));d&&(0,l.logEvent)(n,{entrance:d,...c})}},84400:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(95155),r=a(29847),n=a(53566),o=a(12115),i=a(47650);function s(e){let{src:t,poster:a,rootMargin:s="200px 0px",playOnClick:c=!1,pauseWhenHidden:d=!1,className:u,onClick:m,...p}=e,[h,f]=(0,o.useState)(!1),[v,g]=(0,o.useState)(!1),w=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=w.current;if(!e)return;if("undefined"==typeof IntersectionObserver){f(!0),g(!0);return}let t=new IntersectionObserver(e=>{e.forEach(e=>{d&&g(e.isIntersecting),e.isIntersecting&&(f(!0),d||t.disconnect())})},{rootMargin:s});return t.observe(e),()=>t.disconnect()},[s,d]),(0,o.useEffect)(()=>{let e=w.current;if(!h||!e)return;let t=()=>{d&&(!v||document.hidden)?e.pause():(0,n.cZ)()||e.play().catch(()=>{})};if(t(),d)return document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("visibilitychange",t),e.pause()}},[h,t,v,d]),(0,l.jsx)(r.A,{ref:w,src:h?t:void 0,poster:a,muted:!0,playsInline:!0,loop:!0,className:u,onClick:c||m?e=>{if(null==m||m(e),!c||e.defaultPrevented)return;let a=w.current;a&&(!h&&t&&(0,i.flushSync)(()=>f(!0)),a.play().catch(()=>{}))}:void 0,...p,autoPlay:!d&&p.autoPlay,enableTouchUnlock:!d})}},98398:(e,t,a)=>{a.d(t,{rm:()=>r,uB:()=>l});let l="/mobile-download",r="https://play.google.com/store/apps/details?id=free.ai.photo.generator.collart.ai"}}]);

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.