PageSourceSearch

https://musicautoai.com/_next/static/chunks/401-af53ac9a0870e0b8.js

js musicautoai.com collected 2026-10-02 01:36:50 UTC 32,469 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[401],{70348:function(e,t,n){n.d(t,{W:function(){return F},y:function(){return C}});var i=n(57437),o=n(2265),l=n(40521),s=n(82023),r=n(75277),a=n(89227),c=n(33276),d=n(12805),u=n(40875),h=n(11239),m=n(62869),f=n(26815),p=n(85897),x=n(53647),g=n(57054),v=n(1828),b=n(94508),y=n(51710);let w={minimal:{font:"Inter",fontSize:105,position:"bottom",primaryColor:"#FFFFFF",highlightColor:"#FFFFFF",outlineColor:"#000000",outlineWidth:2,animation:"none"},glow:{font:"Inter",fontSize:120,position:"bottom",primaryColor:"#FFFFFF",highlightColor:"#A855F7",outlineColor:"#7C3AED",outlineWidth:3,shadowColor:"#A855F7",shadowOffset:4,animation:"glow"},bounce:{font:"Poppins",fontSize:130,position:"center",primaryColor:"#FFFFFF",highlightColor:"#FBBF24",outlineColor:"#000000",outlineWidth:3,animation:"scale"},karaoke:{font:"Montserrat",fontSize:115,position:"bottom",primaryColor:"#FFFFFF",highlightColor:"#22D3EE",outlineColor:"#0E7490",outlineWidth:2,animation:"fill"},neon:{font:"Orbitron",fontSize:110,position:"bottom",primaryColor:"#FF00FF",highlightColor:"#00FFFF",outlineColor:"#FF00FF",outlineWidth:2,shadowColor:"#FF00FF",shadowOffset:6,animation:"glow"},typewriter:{font:"JetBrains Mono",fontSize:95,position:"bottom",primaryColor:"#00FF00",highlightColor:"#00FF00",outlineColor:"#003300",outlineWidth:1,animation:"fade"}},j=[{label:"Modern Sans",fonts:["Inter","Poppins","Montserrat","Roboto","Fjalla One","Archivo Black"]},{label:"Bold / Display",fonts:["Bebas Neue","Oswald","Anton","Bowlby One","Russo One","Righteous"]},{label:"Cinematic / Movie",fonts:["Playfair Display","Black Ops One","Bangers","Permanent Marker"]},{label:"Sci-fi / Futuristic",fonts:["Orbitron","Audiowide","Major Mono Display","Faster One","Rubik Mono One"]},{label:"Retro / Vintage",fonts:["Press Start 2P","Bungee","Monoton","Special Elite"]},{label:"Handwritten / Casual",fonts:["Pacifico","Lobster","Caveat","Shadows Into Light","Kalam"]},{label:"Stylized / Themed",fonts:["Creepster","JetBrains Mono"]}];j.flatMap(e=>e.fonts);let N=["#FFFFFF","#000000","#A855F7","#22D3EE","#FBBF24","#EF4444","#22C55E","#3B82F6","#EC4899","#FF00FF","#00FFFF","#00FF00"];function C(e){var t,n,C,F,k,S,M,E,O,z,_,P,B,R,I,W,U,L,D;let{style:A,onChange:Z,previewText:V="Walking through the night",audioCurrentTime:G,audioIsPlaying:Q,wordTimestamps:H}=e,[T,J]=(0,o.useState)(!1),q=V.split(" "),[$,K]=(0,o.useState)(2),[X,Y]=(0,o.useState)(!1),ee=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(!X){ee.current&&(clearInterval(ee.current),ee.current=null);return}return ee.current=setInterval(()=>{K(e=>(e+1)%q.length)},350),()=>{ee.current&&clearInterval(ee.current),ee.current=null}},[X,q.length]);let et=(()=>{if(null==G||!H||0===H.length)return null;let e=H.findIndex(e=>G>=e.start&&G<e.end);return e>=0?e:null})(),en=null!=et?et:$,ei=H&&null!=et?H.map(e=>e.word):q,eo=null!=G&&null!=H&&H.length>0,el=e=>{Z({...w[e],preset:e})},es=e=>{Z({...A,...e})};return(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)(f._,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[(0,i.jsx)(s.Z,{className:"w-3 h-3"}),"Style Presets"]}),(0,i.jsx)("div",{className:"grid grid-cols-3 gap-2",children:Object.keys(w).map(e=>(0,i.jsxs)("button",{onClick:()=>el(e),className:(0,b.cn)("relative px-3 py-2 rounded-lg border text-xs font-medium capitalize transition-all",A.preset===e?"bg-purple-500/20 border-purple-500/50 text-purple-300":"bg-white/5 border-white/10 hover:border-white/20 text-muted-foreground hover:text-foreground"),children:[A.preset===e&&(0,i.jsx)(l.E.div,{layoutId:"preset-indicator",className:"absolute inset-0 bg-purple-500/10 rounded-lg"}),(0,i.jsx)("span",{className:"relative z-10",children:e})]},e))})]}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)(f._,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[(0,i.jsx)(r.Z,{className:"w-3 h-3"}),"Live preview",(0,i.jsxs)("span",{className:"text-[10px] text-gray-500 ml-1",children:["(",eo?"synced to audio":"simulated playback",")"]})]}),!eo&&(0,i.jsx)(m.z,{variant:"outline",size:"sm",onClick:()=>Y(e=>!e),className:"h-7 text-xs",children:X?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.Z,{className:"w-3 h-3 mr-1"})," Stop"]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z,{className:"w-3 h-3 mr-1"})," Play preview"]})})]}),(0,i.jsxs)("div",{className:"relative rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 border border-white/10 overflow-hidden mx-auto",style:{aspectRatio:"16 / 9",maxWidth:360},children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,_rgba(80,40,160,0.4)_0%,_rgba(0,0,0,0.9)_70%)]"}),(0,i.jsx)("div",{className:(0,b.cn)("absolute left-0 right-0 px-6 text-center","top"===A.position&&"top-6","center"===A.position&&"top-1/2 -translate-y-1/2","bottom"===A.position&&"bottom-6"),children:(0,i.jsx)(l.E.span,{initial:{opacity:0,scale:.95}
1,animate:{opacity:1,scale:1},style:{fontFamily:A.font,fontSize:"".concat(Math.min(A.fontSize/2,24),"px"),color:A.primaryColor,textShadow:A.shadowColor?"0 0 ".concat(A.shadowOffset||4,"px ").concat(A.shadowColor,", 0 0 ").concat(2*(A.shadowOffset||4),"px ").concat(A.shadowColor):void 0,WebkitTextStroke:"".concat(A.outlineWidth/2,"px ").concat(A.outlineColor)},className:(0,b.cn)("inline-block leading-tight","scale"===A.animation&&"animate-pulse","glow"===A.animation&&"animate-pulse"),children:ei.map((e,t)=>{let n=t===en;return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(l.E.span,{animate:n&&"scale"===A.animation?{scale:1.18}:{scale:1},transition:{duration:.18,ease:"easeOut"},className:n?"inline-block":"inline",style:{color:n?A.highlightColor:A.primaryColor,textShadow:n&&A.shadowColor?"0 0 ".concat(1.8*(A.shadowOffset||4),"px ").concat(A.highlightColor):void 0},children:e}),t<ei.length-1&&" "]},"".concat(t,"-").concat(e))})},A.preset)})]}),(0,i.jsx)("p",{className:"text-[10px] text-center text-muted-foreground",children:eo?"Active word tracks the song's playhead.":X?"Cycling through preview words \xb7 word ".concat(en+1,"/").concat(ei.length):"Click Play to see how the highlight animates. Use this to check readability + position at publish size."})]}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsx)(f._,{className:"text-xs text-muted-foreground",children:"Font"}),(0,i.jsxs)(x.Ph,{value:A.font,onValueChange:e=>es({font:e}),children:[(0,i.jsx)(x.i4,{className:"h-8 text-xs",children:(0,i.jsx)("span",{style:{fontFamily:A.font},className:"truncate",children:A.font})}),(0,i.jsx)(x.Bw,{className:"max-h-[400px]",children:j.map(e=>(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"px-2 py-1 text-[10px] uppercase tracking-wide text-muted-foreground font-semibold border-b border-border/30 mt-1 first:mt-0",children:e.label}),e.fonts.map(e=>(0,i.jsx)(x.Ql,{value:e,className:"text-xs",children:(0,i.jsx)("span",{style:{fontFamily:e},children:e})},e))]},e.label))})]})]}),(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsx)(f._,{className:"text-xs text-muted-foreground",children:"Position"}),(0,i.jsxs)(x.Ph,{value:A.position,onValueChange:e=>es({position:e}),children:[(0,i.jsx)(x.i4,{className:"h-8 text-xs",children:(0,i.jsx)(x.ki,{})}),(0,i.jsxs)(x.Bw,{children:[(0,i.jsx)(x.Ql,{value:"top",className:"text-xs",children:"Top"}),(0,i.jsx)(x.Ql,{value:"center",className:"text-xs",children:"Center"}),(0,i.jsx)(x.Ql,{value:"bottom",className:"text-xs",children:"Bottom"})]})]})]})]}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(f._,{className:"text-xs text-muted-foreground",children:"Font Size"}),(0,i.jsxs)("span",{className:"text-xs font-mono text-muted-foreground",children:[A.fontSize,"px"]})]}),(0,i.jsx)(p.i,{value:[A.fontSize],min:40,max:200,step:5,onValueChange:e=>{let[t]=e;return es({fontSize:t})}})]}),(0,i.jsxs)("div",{className:"space-y-3",children:[(0,i.jsxs)(f._,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[(0,i.jsx)(d.Z,{className:"w-3 h-3"}),"Colors"]}),(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,i.jsxs)(g.J2,{children:[(0,i.jsx)(g.xo,{asChild:!0,children:(0,i.jsx)("button",{className:"w-10 h-10 rounded-lg border-2 border-white/20 hover:border-white/40 transition-colors shadow-sm",style:{backgroundColor:A.primaryColor},title:"Text color — ".concat(A.primaryColor)})}),(0,i.jsx)(g.yk,{className:"w-auto p-3 bg-zinc-900 border-zinc-700",children:(0,i.jsx)(y.n,{value:A.primaryColor,onChange:e=>es({primaryColor:e}),presets:N})})]}),(0,i.jsx)("span",{className:"text-xs text-muted-foreground font-medium",children:"Text"})]}),(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,i.jsxs)(g.J2,{children:[(0,i.jsx)(g.xo,{asChild:!0,children:(0,i.jsx)("button",{className:"w-10 h-10 rounded-lg border-2 border-white/20 hover:border-white/40 transition-colors shadow-sm",style:{backgroundColor:A.highlightColor},title:"Highlight color — ".concat(A.highlightColor)})}),(0,i.jsx)(g.yk,{className:"w-auto p-3 bg-zinc-900 border-zinc-700",children:(0,i.jsx)(y.n,{value:A.highlightColor,onChange:e=>es({highlightColor:e}),presets:N})})]}),(0,i.jsx)("span",{className:"text-xs text-muted-foreground font-medium",children:"Highlight"})]}),(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,i.jsxs)(g.J2,{children:[(0,i.jsx)(g.xo,{asChild:!0,children:(0,i.jsx)("button",{className:"w-10 h-10 rounded-lg border-2 border-white/20 hover:border-white/40 transition-colors shadow-sm",style:{backgroundColor:A.outlineColor},title:"Outline color — ".concat(A.outlineColor)})}),(0,i.jsx)(g.yk,{className:"w-auto p-3 bg-zinc-900 border-zinc-700",children:(0,i.jsx)(y.n,{value:A.outlineColor,onChange:e=>es({outlineColor:e}),presets:N})})]}),(0,i.jsx)("span",{className:"text-xs text-muted-foreground font-medium",children:"Outline"})]})]})]}),(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsx)(f._,{className:"text-xs text-muted-foreground",children:"Animation Effect"}),(0,i.jsxs)(x.Ph,{value:A.animation,onValueChange:e=>es({animation:e}),children:[(0,i.jsx)(x.i4,{className:"h-8 text-xs",children:(0,i.jsx)(x.ki,{})}),(0,i.jsxs)(x.Bw,{children:[(0,i.jsx)(x.Ql,{value:"none",className:"text-xs",children:"None"}),(0,i.jsx)(x.Ql,{value:"fade",className:"text-xs",children:"Fade In"}),(0,i.jsx)(x.Ql,{value:"scale",className:"text-xs",children:"Scale/Bounce"}),(0,i.jsx)(x.Ql,{value:"glow",className:"text-xs",children:"Glow"}),(0,i.jsx)(x.Ql,{value:"fill",className:"text-xs",children:"Karaoke Fill"})]})]})]}),(0,i.jsxs)("label",{className:"flex items-center justify-between gap-2 cursor-pointer select-none",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:"Show next line preview"}),(0,i.jsx)("span",{className:"text-[10px] text-muted-foreground
1/70",children:"Dim preview of the upcoming subtitle below"})]}),(0,i.jsx)("input",{type:"checkbox",checked:!!A.showUpcomingLine,onChange:e=>es({showUpcomingLine:e.target.checked}),className:"h-4 w-4 accent-primary cursor-pointer"})]}),(0,i.jsxs)(m.z,{variant:"ghost",size:"sm",className:"w-full text-xs text-muted-foreground",onClick:()=>J(!T),children:[(0,i.jsx)(u.Z,{className:(0,b.cn)("w-3 h-3 mr-1 transition-transform",T&&"rotate-180")}),T?"Hide":"Show"," Advanced Settings"]}),T&&(0,i.jsxs)(l.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"space-y-3 pt-2 border-t border-white/10",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(f._,{className:"text-xs text-muted-foreground",children:"Outline Width"}),(0,i.jsxs)("span",{className:"text-xs font-mono text-muted-foreground",children:[A.outlineWidth,"px"]})]}),(0,i.jsx)(p.i,{value:[A.outlineWidth],min:0,max:6,step:.5,onValueChange:e=>{let[t]=e;return es({outlineWidth:t})}})]}),A.shadowColor&&(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(f._,{className:"text-xs text-muted-foreground",children:"Shadow Size"}),(0,i.jsxs)("span",{className:"text-xs font-mono text-muted-foreground",children:[A.shadowOffset||0,"px"]})]}),(0,i.jsx)(p.i,{value:[A.shadowOffset||0],min:0,max:12,step:1,onValueChange:e=>{let[t]=e;return es({shadowOffset:t})}})]}),(0,i.jsxs)("div",{className:"space-y-3 pt-3 border-t border-white/10",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)(f._,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[(0,i.jsx)(h.Z,{className:"w-3 h-3"}),"Vocal Intensity Effects"]}),(0,i.jsx)(v.r,{checked:null!==(O=null===(t=A.intensityEffects)||void 0===t?void 0:t.enabled)&&void 0!==O&&O,onCheckedChange:e=>{es({intensityEffects:{...A.intensityEffects||{enabled:!1,scale:!0,glow:!0,shake:!1,colorShift:!1,softFade:!0,stretchEffect:!0},enabled:e}})}})]}),(0,i.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"Words react to how they're sung - loud words scale up, soft words fade, stretched words expand"}),(null===(n=A.intensityEffects)||void 0===n?void 0:n.enabled)&&(0,i.jsxs)(l.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},className:"space-y-2 pl-2",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:"Scale (loud words)"}),(0,i.jsx)(v.r,{checked:null===(z=null===(C=A.intensityEffects)||void 0===C?void 0:C.scale)||void 0===z||z,onCheckedChange:e=>{es({intensityEffects:{...A.intensityEffects,scale:e}})}})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:"Glow (emphasis)"}),(0,i.jsx)(v.r,{checked:null===(_=null===(F=A.intensityEffects)||void 0===F?void 0:F.glow)||void 0===_||_,onCheckedChange:e=>{es({intensityEffects:{...A.intensityEffects,glow:e}})}})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:"Shake (punchy)"}),(0,i.jsx)(v.r,{checked:null!==(P=null===(k=A.intensityEffects)||void 0===k?void 0:k.shake)&&void 0!==P&&P,onCheckedChange:e=>{es({intensityEffects:{...A.intensityEffects,shake:e}})}})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:"Soft fade (whispers)"}),(0,i.jsx)(v.r,{checked:null===(B=null===(S=A.intensityEffects)||void 0===S?void 0:S.softFade)||void 0===B||B,onCheckedChange:e=>{es({intensityEffects:{...A.intensityEffects,softFade:e}})}})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:"Stretch (held notes)"}),(0,i.jsx)(v.r,{checked:null===(R=null===(M=A.intensityEffects)||void 0===M?void 0:M.stretchEffect)||void 0===R||R,onCheckedChange:e=>{es({intensityEffects:{...A.intensityEffects,stretchEffect:e}})}})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:"Color shift"}),(0,i.jsx)(v.r,{checked:null!==(I=null===(E=A.intensityEffects)||void 0===E?void 0:E.
1colorShift)&&void 0!==I&&I,onCheckedChange:e=>{es({intensityEffects:{...A.intensityEffects,colorShift:e}})}})]}),(0,i.jsxs)("div",{className:"space-y-2 pt-2",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(f._,{className:"text-xs text-muted-foreground",children:"Sensitivity"}),(0,i.jsxs)("span",{className:"text-xs font-mono text-muted-foreground",children:[null!==(W=A.intensitySensitivity)&&void 0!==W?W:50,"%"]})]}),(0,i.jsx)(p.i,{value:[null!==(U=A.intensitySensitivity)&&void 0!==U?U:50],min:0,max:100,step:5,onValueChange:e=>{let[t]=e;return es({intensitySensitivity:t})}}),(0,i.jsxs)("div",{className:"flex justify-between text-[10px] text-muted-foreground",children:[(0,i.jsx)("span",{children:"Strict"}),(0,i.jsx)("span",{children:"Loose"})]}),(0,i.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"How often effects trigger (higher = more words affected)"})]}),(0,i.jsxs)("div",{className:"space-y-2 pt-2",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(f._,{className:"text-xs text-muted-foreground",children:"Effect Strength"}),(0,i.jsxs)("span",{className:"text-xs font-mono text-muted-foreground",children:[null!==(L=A.intensityStrength)&&void 0!==L?L:50,"%"]})]}),(0,i.jsx)(p.i,{value:[null!==(D=A.intensityStrength)&&void 0!==D?D:50],min:0,max:100,step:5,onValueChange:e=>{let[t]=e;return es({intensityStrength:t})}}),(0,i.jsxs)("div",{className:"flex justify-between text-[10px] text-muted-foreground",children:[(0,i.jsx)("span",{children:"Subtle"}),(0,i.jsx)("span",{children:"Dramatic"})]}),(0,i.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"How pronounced effects appear (size, opacity, etc.)"})]})]})]})]})]})}let F={...w.karaoke,preset:"karaoke"}},57054:function(e,t,n){n.d(t,{J2:function(){return r},xo:function(){return a},yk:function(){return c}});var i=n(57437),o=n(2265),l=n(94508);let s=o.createContext(null);function r(e){let{children:t,open:n,onOpenChange:l}=e,[r,a]=o.useState(!1);return(0,i.jsx)(s.Provider,{value:{open:void 0!==n?n:r,setOpen:e=>{void 0===n&&a(e),null==l||l(e)}},children:(0,i.jsx)("div",{className:"relative inline-block",children:t})})}function a(e){let{children:t,asChild:n}=e,l=o.useContext(s);if(!l)throw Error("PopoverTrigger must be used within Popover");return n&&o.isValidElement(t)?o.cloneElement(t,{onClick:()=>l.setOpen(!l.open)}):(0,i.jsx)("button",{type:"button",onClick:()=>l.setOpen(!l.open),children:t})}function c(e){let{children:t,className:n,align:r="center",sideOffset:a=4}=e,c=o.useContext(s);if(!c)throw Error("PopoverContent must be used within Popover");let d=o.useRef(null);return(o.useEffect(()=>{let e=e=>{if(d.current&&!d.current.contains(e.target)){var t;let n=null===(t=d.current.parentElement)||void 0===t?void 0:t.querySelector("[data-popover-trigger]");n&&n.contains(e.target)||c.setOpen(!1)}};return c.open&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c.open,c]),c.open)?(0,i.jsx)("div",{ref:d,className:(0,l.cn)("absolute z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in fade-in-0 zoom-in-95","start"===r&&"left-0","center"===r&&"left-1/2 -translate-x-1/2","end"===r&&"right-0",n),style:{top:"calc(100% + ".concat(a,"px)")},children:t}):null}},43728:function(e,t,n){n.d(t,{o5:function(){return c},v7:function(){return h},w2:function(){return a},z4:function(){return u},zj:function(){return d}});var i=n(40519),o=n(82023),l=n(85929),s=n(4554),r=n(19338);let a="https://storage.googleapis.com/musicauto-860b1.firebasestorage.app/overlays",c=[{id:"none",name:"No Effect",description:"Clean video without any overlay effects",category:"none",blendMode:"screen",defaultOpacity:0,loopable:!0,moodMatch:[],intensity:"subtle"},{id:"dust-particles",name:"Dust Particles",description:"Subtle floating dust motes for a dreamy, nostalgic feel",category:"particles",videoUrl:"".concat(a,"/dust-particles.mp4"),thumbnail:"".concat(a,"/thumbnails/dust-particles.jpg"),blendMode:"screen",defaultOpacity:.4,loopable:!0,moodMatch:["chill","lofi","ambient","relaxing","dreamy","nostalgic","calm"],intensity:"subtle"},{id:"bokeh-lights",name:"Bokeh Lights",description:"Soft, out-of-focus light orbs for a romantic, cinematic look",category:"particles",videoUrl:"".concat(a,"/bokeh-lights.mp4"),thumbnail:"".concat(a,"/thumbnails/bokeh-lights.jpg"),blendMode:"screen",defaultOpacity:.35,loopable:!0,moodMatch:["romantic","dreamy","night","city","pop","love","soft"],intensity:"medium"},{id:"floating-particles",name:"Floating Particles",description:"Gentle glowing particles drifting upward for an ethereal atmosphere",category:"particles",videoUrl:"".concat(a,"/floating-particles.mp4"),thumbnail:"".concat(a,"/thumbnails/floating-particles.jpg"),blendMode:"screen",defaultOpacity:.5,loopable:!0,moodMatch:["ethereal","magical","ambient","meditation","peaceful","spiritual"],intensity:"medium"},{id:"light-leak-warm",name:"Warm Light Leak",description:"Golden, warm light bleeding in from the edges for a vintage feel",category:"light",videoUrl:"".concat(a,"/light-leak-warm.mp4"),thumbnail:"".concat(a,"/thumbnails/light-leak-warm.jpg"),blendMode:"screen",defaultOpacity:.3,loopable:!0,moodMatch:["warm","vintage","nostalgic","summer","golden","sunset","indie"],intensity:"medium"},{id:"light-leak-cool",name:"Cool Light Leak",description:"Blue and cyan light flares for a modern, futuristic vibe",category:"light",videoUrl:"".concat(a,"/light-leak-cool.mp4"),thumbnail:"".concat(a,"/thumbnails/light-leak-cool.jpg"),blendMode:"screen",defaultOpacity:.3,loopable:!0,moodMatch:["cool","modern","futuristic","electronic","synthwave","night","cyberpunk"],intensity:"medium"},{id:"film-grain-light",name:"Light Film Grain",description:"Subtle analog texture for a classic, cinematic quality",category:"film",videoUrl:"".concat(a,"/film-grain-light.mp4"),thumbnail:"".concat(a,"/thumbnails/film-grain-light.jpg"),blendMode:"overlay",defaultOpacity:.25,loopable:!0,moodMatch:["vintage","indie","acoustic","analog","retro","classic"],intensity:"subtle"},{id:"film-grain-heavy",name:"Heavy Film Grain",description:"Strong 16mm film texture for a raw, authentic look",category:"film",videoUrl:"".concat(a,"/film-grain-heavy.mp4"),thumbnail:"".concat(a,"/thumbnails/film-grain-heavy.jpg"),blendMode:"overlay",defaultOpacity:.4,loopable:!0,moodMatch:["gritty","raw","indie","grunge","documentary","old"],intensity:"strong"},{id:"fire-embers",name:"Fire Embers",description:"Rising sparks and embers for intense, dramatic sce
1nes",category:"particles",videoUrl:"".concat(a,"/fire-embers.mp4"),thumbnail:"".concat(a,"/thumbnails/fire-embers.jpg"),blendMode:"screen",defaultOpacity:.5,loopable:!0,moodMatch:["intense","dramatic","epic","rock","metal","powerful","fire","energy"],intensity:"strong"},{id:"snow-fall",name:"Falling Snow",description:"Gentle snowflakes drifting down for a winter atmosphere",category:"weather",videoUrl:"".concat(a,"/snow-fall.mp4"),thumbnail:"".concat(a,"/thumbnails/snow-fall.jpg"),blendMode:"screen",defaultOpacity:.45,loopable:!0,moodMatch:["winter","christmas","peaceful","cold","calm","holiday","cozy"],intensity:"medium"},{id:"rain-drops",name:"Rain Drops",description:"Rain falling on a window with water droplet effects",category:"weather",videoUrl:"".concat(a,"/rain-drops.mp4"),thumbnail:"".concat(a,"/thumbnails/rain-drops.jpg"),blendMode:"screen",defaultOpacity:.4,loopable:!0,moodMatch:["rain","melancholic","sad","reflective","moody","atmospheric","lofi"],intensity:"medium"},{id:"solid-black",name:"Black contrast",description:"Solid black layer over the visualizer / image. Slide opacity to taste — adds depth, darkens highlights, makes text overlays pop.",category:"tint",blendMode:"normal",defaultOpacity:.35,loopable:!0,moodMatch:["dark","moody","cinematic","noir","dramatic","intense","night"],intensity:"medium",solidColor:"#000000"},{id:"solid-white",name:"White wash",description:"Solid white layer for a hazy / overexposed look. Brightens shadows and softens contrast — useful behind text overlays on dark imagery.",category:"tint",blendMode:"normal",defaultOpacity:.25,loopable:!0,moodMatch:["dreamy","soft","ethereal","ambient","calm","pastel"],intensity:"subtle",solidColor:"#FFFFFF"}];function d(e){return c.find(t=>t.id===e)}function u(e,t){if(!e&&!t)return c.slice(0,4);let n=[e,t].filter(Boolean).join(" ").toLowerCase().split(/[\s,]+/);return c.filter(e=>"none"!==e.id).map(e=>{let t=e.moodMatch.reduce((e,t)=>n.some(e=>t.includes(e)||e.includes(t))?e+1:e,0);return{effect:e,matchScore:t}}).filter(e=>{let{matchScore:t}=e;return t>0}).sort((e,t)=>t.matchScore-e.matchScore).map(e=>{let{effect:t}=e;return t}).slice(0,4)}let h=[{id:"none",name:"None",icon:i.Z},{id:"particles",name:"Particles",icon:o.Z},{id:"light",name:"Light Effects",icon:l.Z},{id:"film",name:"Film Texture",icon:s.Z},{id:"weather",name:"Weather",icon:r.Z}];c.map(e=>e.id)},92717:function(e,t,n){function i(e,t){if(!e)return null;let n=e.visualizerOverlay,i=e.visualizerSegments,o=()=>{var t,i;return(null==n?void 0:n.enabled)?{enabled:!0,engine:n.engine,opacity:null!==(t=n.opacity)&&void 0!==t?t:.5,blendMode:null!==(i=n.blendMode)&&void 0!==i?i:"screen",config:void 0,audioReactive:e.audioReactive,capturedAssetUrl:n.capturedAssetUrl}:null};if(i&&i.length>0){var l,s,r,a,c;let d=i.find(e=>t>=e.start&&t<e.end);return d?{enabled:!0,engine:d.engine,opacity:null!==(s=null!==(l=d.opacity)&&void 0!==l?l:null==n?void 0:n.opacity)&&void 0!==s?s:.5,blendMode:null!==(a=null!==(r=d.blendMode)&&void 0!==r?r:null==n?void 0:n.blendMode)&&void 0!==a?a:"screen",config:d.config,audioReactive:null!==(c=d.audioReactive)&&void 0!==c?c:e.audioReactive,capturedAssetUrl:void 0}:o()}return o()}function o(e,t){if(!e)return null;let n=e.effectSegments,i=()=>{var t;return e.enabled&&e.effectId&&"none"!==e.effectId?{enabled:!0,effectId:e.effectId,opacity:null!==(t=e.opacity)&&void 0!==t?t:.4,blendMode:void 0,audioReactive:e.audioReactive}:null};if(n&&n.length>0){var o,l,s;let r=n.find(e=>t>=e.start&&t<e.end);return r?"none"===r.effectId?null:{enabled:!0,effectId:r.effectId,opacity:null!==(l=null!==(o=r.opacity)&&void 0!==o?o:e.opacity)&&void 0!==l?l:.4,blendMode:r.blendMode,audioReactive:null!==(s=r.audioReactive)&&void 0!==s?s:e.audioReactive}:i()}return i()}n.d(t,{Be:function(){return o},bp:function(){return i}})},51318:function(e,t,n){n.d(t,{HP:function(){return u},sm:function(){return h},yr:function(){return m}});let i={"16:9":12,"1:1":8,"9:16":5},o={"16:9":65,"1:1":45,"9:16":30},l=/[.!?/]$/,s=/[,:]$/,r=new Set(["a","an","the","to","in","on","at","of","for","with","by","from","up","down","into","onto","upon","and","but","or","nor","so","yet","as","if","when","while","because","although","though","i","you","he","she","it","we","they","i'm","i've","i'll","i'd","you're","you've","you'll","
1we're","we've","they're","they've","he's","she's","it's","that's","there's","here's","what's","who's","my","your","our","their","his","her","its","is","are","was","were","be","been","being","have","has","had","do","does","did","will","would","could","should","might","must","can","not","don't","won't","can't","couldn't","wouldn't","shouldn't","just","like","than","look","get","take","put","go","come","give","make","let","set"]);function a(e){return l.test(e.trim())}function c(e){return s.test(e.trim())}function d(e){let t=e.replace(/[.,!?;:'"]+$/,"").toLowerCase();return r.has(t)}function u(e){var t,n;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{aspectRatio:s="16:9"}=l,r=e.map(e=>({...e,word:e.word.trim()})).filter(e=>e.word.length>0);if(0===r.length)return[];let u=i[s],h=o[s],m=0===(t=function(e){let t=[];for(let n=1;n<e.length;n++){let i=e[n].start-e[n-1].end;t.push(Math.max(0,i))}return t}(r)).length?.4:Math.max(.4,2*function(e){if(0===e.length)return 0;let t=[...e].sort((e,t)=>e-t),n=Math.floor(t.length/2);return t.length%2==0?(t[n-1]+t[n])/2:t[n]}(t)),f=[],p=[],x=0;for(let e=0;e<r.length;e++){let t=r[e],i=e>0?r[e-1]:null,o=(i?t.start-i.end:0)>=m,l=!1,s="";if(p.length>0&&i&&(a(i.word)?(l=!0,s="hard_punctuation"):c(i.word)&&o&&p.length>=3?(l=!0,s="soft_punctuation_with_pause"):o&&p.length>=2?(l=!0,s="significant_pause"):p.length>=u?(l=!0,s="max_words"):(n=p).reduce((e,t)=>e+t.word.length,0)+Math.max(0,n.length-1)+t.word.length+1>h&&(l=!0,s="max_chars")),l&&p.length>0){let e=p,n=[];if(("max_words"===s||"max_chars"===s)&&p.length>=2){let i=p.length-1,o=Math.max(0,p.length-5-1),l=function(e,t,n,i,o){for(let t=n;t>=i;t--){let n;let i=e[t];if(!(!(a(i.word)||c(i.word)||!d(i.word))||(n=t<e.length-1?e[t+1]:o)&&d(n.word)&&!a(i.word)))return t}return n}(p,0,i,o,t);l<i&&(e=p.slice(0,l+1),n=p.slice(l+1))}let i=e[e.length-1];f.push({id:"line-".concat(f.length),text:e.map(e=>e.word).join(" "),start:x,end:i.end,words:[...e]}),n.length>0?x=(p=n)[0].start:(p=[],x=t.start)}0===p.length&&(x=t.start),p.push(t)}if(p.length>0){let e=p[p.length-1];f.push({id:"line-".concat(f.length),text:p.map(e=>e.word).join(" "),start:x,end:e.end,words:[...p]})}return(function(e,t){if(e.length<=1)return e;let n=[],i=0;for(;i<e.length;){let o=e[i];if(o.words.length<2&&!a(o.text)){let l=e[i+1];if(l&&o.words.length+l.words.length<=t){let e=[...o.words,...l.words];n.push({id:"line-".concat(n.length),text:e.map(e=>e.word).join(" "),start:o.start,end:l.end,words:e}),i+=2;continue}if(n.length>0){let e=n[n.length-1];if(e.words.length+o.words.length<=t&&!a(e.text)){let t=[...e.words,...o.words];n[n.length-1]={...e,text:t.map(e=>e.word).join(" "),end:o.end,words:t},i++;continue}}}n.push(o),i++}return n})(f,u).map(e=>{var t;if(0===e.words.length)return e;let n=[...e.words];return n[0]={...n[0],word:(t=n[0].word)&&0!==t.length?t.charAt(0).toUpperCase()+t.slice(1):t},{...e,text:n.map(e=>e.word).join(" "),words:n}}).map((e,t)=>({...e,id:"line-".concat(t)}))}function h(e){return i[e]||i["16:9"]}function m(e,t){if(!e||0===e.length)return -1;let n=-1;for(let i=0;i<e.length;i++){let o=e[i],l=Math.max(.05,o.end-o.start),s=.08*((o.word||"").trim().length||1)+.12;t>=(l>2*s&&l-s>.5?Math.max(o.start,o.end-s):o.start)&&(n=i)}return n}},8727:function(e,t,n){function i(e,t){if(!e||0===e.length)return null;for(let n=0;n<e.length;n++){let i=e[n];if(t>=i.start&&t<i.end)return i}for(let n=0;n<e.length;n++){let i=e[n];if(t>=i.end&&t-i.end<=.1)return i}return null}function o(e,t,n,o){if(e&&e.length>0){let t=i(e,o);return t?{url:t.imageUrl,source:t.source}:null}return t?{url:t}:null}function l(e,t,n,o){if(e&&e.length>0){var l,s;let t=i(e,o);if(!t)return null;let n=null!==(l=t.loopMode)&&void 0!==l?l:"loop",r=o-t.start,a=t.clipDuration&&t.clipDuration>.05&&"loop"===n?r%t.clipDuration:r;return{url:t.videoUrl,jobId:t.jobId,loopMode:n,playbackRate:null!==(s=t.playbackRate)&&void 0!==s?s:1,timeInClip:a,clipDuration:t.clipDuration,reverse:!!t.reverse}}return t?{url:t,loopMode:"loop",playbackRate:1,timeInClip:0,reverse:!1}:null}n.d(t,{G2:function(){return r},Sq:function(){return i},WN:function(){return l},cG:function(){return a},km:function(){return c},pt:function(){return o}});let s={brightness:100,contrast:100,saturation:100,blur:0,sharpness:0,filterPreset:"none"};function r(e,t,n){var o,l,r,a,c,d,u,h,m,f,p,x;let g={brightness:null!==(o=null==t?void 0:t.brightness)&&void 0!==o?o:s.brightness,contrast:null!==(l=null==t?void 0:t.contrast)&&void 0!==l?l:s.contrast,
1saturation:null!==(r=null==t?void 0:t.saturation)&&void 0!==r?r:s.saturation,blur:null!==(a=null==t?void 0:t.blur)&&void 0!==a?a:s.blur,sharpness:null!==(c=null==t?void 0:t.sharpness)&&void 0!==c?c:s.sharpness,filterPreset:null!==(d=null==t?void 0:t.filter)&&void 0!==d?d:s.filterPreset};if(!e||0===e.length)return g;let v=i(e,n);return v?{brightness:null!==(u=v.brightness)&&void 0!==u?u:g.brightness,contrast:null!==(h=v.contrast)&&void 0!==h?h:g.contrast,saturation:null!==(m=v.saturation)&&void 0!==m?m:g.saturation,blur:null!==(f=v.blur)&&void 0!==f?f:g.blur,sharpness:null!==(p=v.sharpness)&&void 0!==p?p:g.sharpness,filterPreset:null!==(x=v.filterPreset)&&void 0!==x?x:g.filterPreset}:g}function a(e){let t=1+e.sharpness/100*.3,n=e.contrast/100*t;return["brightness(".concat(e.brightness/100,")"),"contrast(".concat(n,")"),"saturate(".concat(e.saturation/100,")"),"blur(".concat(e.blur,"px)"),{none:"",vintage:"sepia(0.4) hue-rotate(-10deg)",cinematic:"saturate(1.2) contrast(1.1) brightness(0.95)",vibrant:"saturate(1.5) contrast(1.1) brightness(1.05)"}[e.filterPreset]||""].join(" ").trim()}function c(e,t){var n;if(!e)return 1;if(t<e.start)return 0;let i=e.transitionIn;if(!i||"cut"===i)return 1;let o=Math.max(0,null!==(n=e.transitionInDurationMs)&&void 0!==n?n:250);if(0===o)return 1;let l=(t-e.start)*1e3;return l>=o?1:Math.max(0,Math.min(1,l/o))}}}]);

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.