(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5438],{29934:function(e,t,n){Promise.resolve().then(n.bind(n,65612)),Promise.resolve().then(n.bind(n,78268)),Promise.resolve().then(n.bind(n,75135)),Promise.resolve().then(n.bind(n,73354))},65612:function(e,t,n){"use strict";n.d(t,{default:function(){return p}});var a=n(57437),r=n(48527),i=n.n(r),l=n(2265),s=n(56800),o=n.n(s);function c(e){let{className:t}=e;return(0,a.jsx)("svg",{className:o()("icon",t),height:"17",viewBox:"0 0 17 17",width:"17",children:(0,a.jsx)("path",{d:"M10.9742 14.102V11.5308H13.5457C14.0983 11.5333 14.6384 11.3662 15.0931 11.052C15.5478 10.7379 15.8954 10.2918 16.0888 9.77399C16.2823 9.25615 16.3123 8.69144 16.175 8.15597C16.0377 7.6205 15.7395 7.14004 15.3208 6.77933C14.8311 6.34516 14.2 6.10436 13.5457 6.10198H10.9742V3.53083C10.9742 2.81092 10.6883 2.12047 10.1794 1.61142C9.67056 1.10236 8.98039 0.816406 8.26073 0.816406C7.54108 0.816406 6.85091 1.10236 6.34204 1.61142C5.83316 2.12047 5.54723 2.81092 5.54723 3.53083V6.10198H2.97327C2.25362 6.10198 1.56337 6.38798 1.0545 6.89703C0.545622 7.40608 0.259766 8.0965 0.259766 8.81641C0.259766 9.53632 0.545622 10.2267 1.0545 10.7358C1.56337 11.2448 2.25362 11.5308 2.97327 11.5308H5.54347V14.102C5.54347 14.8219 5.82941 15.5123 6.33828 16.0214C6.84715 16.5304 7.53732 16.8164 8.25698 16.8164C8.97663 16.8164 9.6668 16.5304 10.1757 16.0214C10.6845 15.5123 10.9704 14.8219 10.9704 14.102H10.9742Z"})})}function u(e){let{step:t}=e;return(0,a.jsx)("div",{className:"absolute inset-y-0 right-0 hidden lg:block","data-step":t,children:(0,a.jsxs)("div",{className:"sticky top-[50px] pt-12",children:[(0,a.jsxs)("div",{className:"flex size-[425px] flex-col items-center justify-center overflow-hidden rounded-full bg-background-layer-2",children:[(0,a.jsx)("img",{alt:"Worbler Dog Video",className:o()("rounded-3xl transition-transform",3===t&&"translate-y-[94px]"),loading:"lazy",src:"/learn-more/dog.svg",width:"296"}),(0,a.jsxs)("div",{className:o()("mt-4 h-[232px] w-[296px] rounded-3xl bg-background-layer-3 p-4 text-center transition-[transform,opacity]",3===t&&"translate-y-[60px] opacity-0"),children:[(0,a.jsx)("h5",{className:"mb-4",children:"Transcript"}),(0,a.jsx)("p",{children:"Woof woof!"}),(0,a.jsx)("p",{children:"I'm Spot the pirate, matey"}),(0,a.jsx)("p",{children:"Where's the treasure?"}),(0,a.jsx)("p",{className:o()("transition-[transform,opacity] delay-200",2!==t&&"translate-x-full scale-x-50 opacity-0"),children:"{ Deep Belly Laugh }"})]}),(0,a.jsx)("div",{className:o()("transition-[transform,opacity]",3===t?"translate-y-[-75px]":"opacity-0"),children:"Spot, the Laughing Pirate"})]}),(0,a.jsxs)("div",{className:o()("absolute left-[125px] top-0 h-[108px] w-[108px] rounded-full bg-background-layer-1 transition-[transform,opacity]",2!==t&&3!==t&&"scale-50 opacity-0"),children:[(0,a.jsx)("img",{alt:"Laugh Emoji",className:o()("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity",3===t&&"opacity-0"),height:"48",loading:"lazy",src:"/learn-more/emoji-laugh.svg",width:"46"}),(0,a.jsx)("img",{alt:"Instagram",className:o()("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity",3!==t&&"opacity-0"),height:"45",loading:"lazy",src:"/learn-more/instagram.svg",width:"45"})]}),(0,a.jsxs)("div",{className:o()("absolute rounded-full bg-background-layer-1 transition-[transform,opacity]","left-[15px] top-[90px] h-[163px] w-[163px]",2!==t&&3!==t&&"scale-50 opacity-0"),children:[(0,a.jsx)("img",{alt:"Pirate Voice",className:o()("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity",2!==t&&"opacity-0"),height:"77",loading:"lazy",src:"/learn-more/pirate.svg",width:"68"}),(0,a.jsx)("img",{alt:"Tik Tok",className:o()("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity",3!==t&&"opacity-0"),height:"68",loading:"lazy",src:"/learn-more/tiktok.svg",width:"66"})]}),(0,a.jsx)("div",{className:o()("absolute size-2 rounded-full transition-[transform,opacity]","left-[208px] top-[147px] bg-sound",3!==t&&"scale-0 opacity-0")}),(0,a.jsx)("div",{className:o()("absolute size-2 rounded-full transition-[transform,opacity]","left-[254px] top-[117px] bg-filter",3!==t&&"scale-0 opacity-0")}),(0,a.jsx)("div",{className:o()("absolute size-2 rounded-full transition-[transform,opacity]","left-[282px] top-[165px] bg-voice",3!==t&&"scale-0 opacity-0")}),(0,a.jsx)(c,{className:o()("absolute left-[307px] top-[125px] h-[19px] w-[19px] fill-primary","transition-[transform,opacity] delay-200 ease-bounce",3!==t&&"scale-0 opacity-0")}),(0,a.jsx)(c,{className:o()("absolute left-[252px] top-[53px] h-[37px] w-[37px] fill-primary","transition-[transform,opacity] delay-[220ms] ease-bounce",3!==t&&"scale-0 opacity-0")}),(0,a.jsx)(c,{className:o()("absolute left-[326px] top-[179px] h-[19px] w-[19px] fill-sound","transition-[transform,opacity] delay-300 ease-bounce",3!==t&&"scale-0 opacity-0")}),(0,a.jsx)(c,{className:o()("absolute left-[365px] top-[103px] h-[42px] w-[42px] fill-filter","transition-[transform,opacity] delay-[400ms] ease-bounce",3!==t&&"scale-0 opacity-0")})]})})}function d(e){let{currentStep:t,description:n,imageSrc:r,step:i,title:l}=e;return(0,a.jsxs)("div",{className:o()("step relative flex flex-col items-center justify-start gap-6 transition-opacity lg:sticky lg:top-[50px] lg:h-[531px] lg:flex-row","step-".concat(i),t!==i&&"lg:opacity-0"),children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-start gap-4 lg:max-w-[400px] xl:max-w-[472px]",children:[(0,a.jsx)("div",{className:"flex size-16 items-center justify-center rounded-full bg-primary text-4xl font-bold text-background",children:i}),(0,a.jsx)("h2",{className:"max-w-[350px] text-center",children:l}),(0,a.jsx)("div",{className:"text-center lg:mb-0 lg:text-2xl",children:n})]}),(0,a.jsx)("img",{alt:l,className:"lg:hidden",loading:"lazy",src:r,width:"382"})]})}let f=[{color:"#f0d800",description:"Upload your own video or select one from our gallery. Or, create a voice-over file for your workflow.",imageSrc:"/learn-more/step-1.svg",title:"Start with a video and a script."},{color:"#04b900",description:"Add voices, effects, and sounds at any point in your video.",imageSrc:"/learn-more/step-2.svg",title:"Give your creation a unique sound."},{color:"#00e4e4",description:"Repeat, explore, spread the joy, have fun, be silly ... we all need more silly in our lives!",imageSrc:"/learn-more/step-3.svg",title:"Share with friends."}];function p(){let[e,t]=(0,l.useState)(),n=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=i()(()=>{let e=document.getElementById("steps");if(!e){console.error("No steps element");return}let n=e.getBoundingClientRect().top;n>-796.5?t(1):n>-2124?t(2):t(3)},50);return e(),document.addEventListener("scroll",e,{passive:!0}),()=>{document.removeEventListener("scroll",e)}},[e]),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center justify-start gap-10 px-4 pb-4 pt-20",children:[(0,a.jsx)("h2",{className:"w-full max-w-screen-xs text-center",children:"Create Your First Worble in Just Minutes"}),(0,a.jsxs)("div",{ref:n,className:"relative mx-auto flex w-full max-w-screen-lg flex-col gap-20 lg:h-[calc(531px*7)] xl:max-w-screen-lg",id:"steps",children:[(0,a.jsx)(u,{step:e}),f.map((t,n)=>(0,a.jsx)(d,{currentStep:e||1,...t,step:n+1},t.title))]})]})}},78268:function(e,t,n){"use strict";n.d(t,{default:function(){return y}});var a=n(57437),r=n(56800),i=n.n(r),l=n(87138),s=n(2265),o=n(48112),c=n(69921),u=n(12856),d=n(87678),f=n(18623),p=n(76232),x=n(1901),m=n(90628),g=n(42191);function h(e){let{className:t}=e,[n,r]=(0,s.useState)(!1),l=(0,s.useRef)(null);async function o(){let e=l.current;if(!e)return;let t=await (0,x.Su)("Evelyn"),n=(0,g.V3)({type:"text",content:"(worble)[/wɔɹbəl/]",options:t?[t]:[]}),a=await (0,m.yy)((0,u.l)(n)),r=await a.blob();e.src=URL.createObjectURL(r)}return(0,s.useEffect)(()=>{function e(){r(!0)}function t(){r(!1)}let n=l.current;return n&&(n.addEventListener("play",e),n.addEventListener("pause",t),n.addEventListener("ended",t)),o(),()=>{let n=l.current;n&&(n.removeEventListener("play",e),n.removeEventListener("pause",t),n.removeEventListener("ended",t))}},[]),(0,a.jsxs)(d.Z,{"aria-label":"Play or pause audio preview",className:i()("btn-transparent btn-icon-medium",t),onClick:()=>{var e,t;n?null===(e=l.current)||void 0===e||e.pause():null===(t=l.current)||void 0===t||t.play()},children:[(0,a.jsx)("audio",{ref:l,"aria-hidden":"true"}),n?(0,a.jsx)(f.Z,{className:"size-5"}):(0,a.jsx)(p.Z,{className:"size-6"})]})}function v(e){let{className:t}=e;return(0,a.jsxs)("div",{className:i()("flex w-full flex-col gap-2 rounded-3xl bg-background-layer-1 p-6 lg:max-w-[432px] lg:-translate-y-14",t),children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-start",children:[(0,a.jsx)("div",{className:"body-xl",children:"worble [wawrb-uhl]"}),(0,a.jsx)(h,{className:"absolute right-4 top-4"})]}),(0,a.jsx)("div",{className:"font-bold text-gray",children:"noun"}),(0,a.jsx)("p",{className:"body-xl",children:"a fun or silly video or audio file that uses one of our voices, filters, or sounds"})]})}function y(){let[e,t]=(0,s.useState)(!1);return(0,a.jsx)("div",{className:"flex w-full flex-col items-center bg-learn-more bg-no-repeat",children:(0,a.jsxs)("div",{className:"flex w-full max-w-[1350px] flex-col items-center justify-center gap-4 px-4 pb-32 pt-14 lg:flex-row lg:justify-between lg:px-20 lg:py-10",children:[(0,a.jsxs)("div",{className:"flex max-w-[526px] grow flex-col items-center gap-2 text-center lg:items-start lg:text-left",children:[(0,a.jsxs)("h1",{children:["Add ",(0,a.jsx)("span",{className:"text-voice",children:"Voice"})," &"," ",(0,a.jsx)("span",{className:"text-filter",children:"Pizzaz"})," To Your Videos!"]}),(0,a.jsx)("div",{className:"body-xl text-gray",children:"Share a funny joke with your friend. Mix an overdub. Choose a new voice-over."}),(0,a.jsxs)(l.default,{className:"btn btn-primary btn-large lg:mt-5",href:"/create",prefetch:!1,children:["Create Awesomeness",(0,a.jsx)(c.Z,{className:"size-5"})]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 flex-col items-center justify-center",children:[(0,a.jsx)(o.default,{controls:!0,label:"Intro Video",orientation:"landscape",preload:"metadata",sources:["/global/video/home/explainer.mp4"],videoClassName:"rounded-3xl lg:w-[500px] xl:w-[615px]",onPause:()=>t(!1),onPlay:()=>t(!0)}),(0,a.jsx)(v,{className:i()("-translate-y-10 transition-opacity lg:-translate-y-14",e&&"opacity-0")})]})]})})}},75135:function(e,t,n){"use strict";n.d(t,{default:function(){return i}});var a=n(57437),r=n(69921);function i(){return(0,a.jsx)("div",{className:"flex w-full flex-col items-center justify-start px-4 pt-8",children:(0,a.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-4 rounded-3xl bg-background-layer-2 p-8 lg:min-h-[196px] lg:max-w-screen-xl lg:flex-row lg:gap-8 lg:py-0",children:[(0,a.jsx)("div",{className:"flex size-[100px] shrink-0 items-center justify-center rounded-full bg-background-layer-1",children:(0,a.jsx)("img",{alt:"Transform your videos with AI generated voices",height:"64",loading:"lazy",src:"/learn-more/people.svg",width:"47"})}),(0,a.jsxs)("div",{className:"flex flex-col text-center lg:text-left",children:[(0,a.jsxs)("h3",{className:"mb-2",children:["Transform your videos with AI generated"," ",(0,a.jsx)("span",{className:"text-green",children:"voices"})]}),(0,a.jsx)("div",{className:"lg:text-xl",children:"100+ voices, filters, and sounds, endless possibilities"})]}),(0,a.jsxs)("a",{className:"btn btn-primary btn-large",href:"/create",children:["Create Awesomeness",(0,a.jsx)(r.Z,{className:"size-5"})]})]})})}},73354:function(e,t,n){"use strict";n.d(t,{default:function(){return d}});var a=n(57437),r=n(87138),i=n(2265),l=n(88578),s=JSON.parse('[{"label":"Olivia","description":"Chatty Boston townie","modifiers":[{"value":"female-boston","tag":"voice"},{"value":"85%","tag":"rate"}],"image":"/voices/olivia.svg","imagePNG":"/voices/olivia-150x150.png","type":"voice","id":"voice-olivia","categories":["Accents"]},{"label":"Jayden","description":"Tranquil African American man","modifiers":[{"value":"deep-english","tag":"voice"}],"image":"/voices/jayden.svg","imagePNG":"/voices/jayden-150x150.png","type":"voice","id":"voice-jayden","categories":["Accents"]},{"label":"Coco","description":"Flamboyant drag queen","modifiers":[{"value":"drag-queen","tag":"voice"},{"tag":"rate","value":"90%"}],"image":"/voices/coco.svg","imagePNG":"/voices/coco-150x150.png","type":"voice","id":"voice-coco","categories":["Popular","Characters","Funny and Weird"]},{"label":"Yoda","description":"Similar to a Star Wars creature","modifiers":[{"value":"yoda","tag":"voice"},{"tag":"rate","value":"95%"}],"image":"/filters/yoda.svg","imagePNG":"/filters/yoda-150x150.png","type":"voice","id":"voice-yoda","categories":["Hollywood","Funny and Weird"]}]'),o=n(58085),c=n(69921),u=n(42191);function d(){let e=(0,i.useRef)((0,u.Te)()).current;return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-6 px-4 py-20 lg:py-14",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,a.jsxs)("h2",{children:[(0,a.jsx)("span",{className:"text-green",children:"Try"})," for Yourself"]}),(0,a.jsx)("p",{className:"body-xl",children:"Type something below to hear it read aloud by one of our characters."})]}),(0,a.jsxs)("div",{className:"relative flex w-full max-w-screen-lg flex-col items-center gap-6 rounded-3xl bg-background-layer-1 p-6",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col gap-6 lg:flex-row",children:[(0,a.jsx)("div",{className:"flex w-full gap-4 overflow-x-auto pb-1 lg:grid lg:max-w-[366px] lg:grid-cols-2 lg:pb-0",children:s.map(t=>(0,a.jsx)(l.Z,{previewOnSelect:!0,className:"w-[175px] lg:w-full",getPreviewToken:()=>e,option:t},t.id))}),(0,a.jsx)(o.Z,{selectOnFocus:!0,className:"flex h-[252px] grow items-center justify-center rounded-2xl bg-background-layer-2 p-4 text-center text-xl font-bold lg:h-[420px]",defaultValue:"“Write something here”",onChange:t=>{e.content=t}})]}),(0,a.jsxs)(r.default,{className:"btn btn-primary btn-large",href:"/create",prefetch:!1,children:["Try More Voices",(0,a.jsx)(c.Z,{className:"size-5"})]})]})]})}},58085:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var a=n(57437),r=n(56800),i=n.n(r),l=n(2265),s=n(35396);let o=/[\n\r]+/g;if("undefined"!=typeof console){let e=console.error;console.error=function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];if(!("string"==typeof t&&t.indexOf("`contentEditable` and contains `children`")))return e.call(this,t,...a)}}function c(e){let{className:t,defaultValue:n,id:r,maxLength:c,onChange:u,onFocus:d,onKeyDown:f,onMaxLengthReached:p,selectOnFocus:x,tabIndex:m}=e,g=(0,l.useRef)(null);return(0,a.jsx)("span",{ref:g,contentEditable:!0,className:i()("editable",t),id:r,role:"textbox",tabIndex:m,onDragOver:e=>e.preventDefault(),onDrop:e=>e.preventDefault(),onFocus:()=>{null==d||d(),x&&g.current&&(0,s.lt)(g.current)},onInput:e=>{let t=e.target.textContent||"",n=g.current;!t&&n&&(n.textContent="\xa0"),c&&t.length>c&&(null==p||p(),t=t.slice(0,c),n&&(n.textContent=t)),u(t)},onKeyDown:f,onPaste:e=>{e.preventDefault();let t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t.replace(o," ").trim())},children:n||"\xa0"})}},25672:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(57437),r=n(50913),i=n(56800),l=n.n(i),s=n(2265),o=n(3801),c=n(54191),u=n(87678);function d(e){let{children:t,className:n,closeClass:i,closeButtonClass:d,customPosition:f,dialog:p,hideClose:x,id:m,onClose:g,open:h,openClass:v,overlay:y,...C}=e,[b,j]=(0,s.useState)(!1),[w,N]=(0,s.useState)(!0),k=(0,s.createRef)();return(p||(0,o.Z)({element:k,onClose:g,open:!w}),(0,s.useEffect)(()=>{let e;return h?(N(!1),e=setTimeout(()=>{requestAnimationFrame(()=>{j(!0)})},100)):(j(!1),e=setTimeout(()=>N(!0),300)),()=>{clearTimeout(e)}},[h]),w)?null:(0,a.jsxs)(r.ll,{children:[y&&(0,a.jsx)("div",{className:l()("modal-overlay fixed inset-0 z-50 bg-black/50 backdrop-blur transition-opacity",!b&&"opacity-0"),onScroll:e=>e.stopPropagation()}),(0,a.jsxs)("div",{ref:k,...C,className:l()("modal max-size-full fixed z-50 flex flex-col overflow-auto rounded-2xl",!f&&"left-1/2 top-1/2 -translate-x-1/2","transform-gpu transition-[opacity,transform] lg:shadow-[0_0_10px_rgba(0,0,0,0.5)]",!f&&(b?null!=v?v:"-translate-y-1/2":null!=i?i:"translate-y-[calc(-50%-30px)]"),!b&&"opacity-0",n),id:m,role:"dialog",onScroll:e=>e.stopPropagation(),children:[t,!x&&(0,a.jsx)(u.Z,{"aria-label":"Close Modal",className:l()("btn-secondary btn-icon-small absolute right-2 top-2",d),onClick:e=>{e.stopPropagation(),g()},children:(0,a.jsx)(c.Z,{className:"size-4"})})]})]})}},90397:function(e,t,n){"use strict";n.d(t,{LoginProvider:function(){return f},N:function(){return d}});var a=n(57437),r=n(47710),i=n.n(r),l=n(2265),s=n(92516),o=n(25672);function c(){let{description:e,loginOpen:t,setLoginOpen:n,title:r}=d();return(0,a.jsx)(o.Z,{"aria-label":"Log in",className:"left-1/2 top-[calc(60px+1rem)] !w-[calc(100%-2rem)] max-w-modal bg-white text-background lg:left-auto lg:right-4 lg:top-[80px] lg:!translate-x-0",closeClass:"translate-y-[-30px]",id:"login-modal",open:t,openClass:"translate-y-0",onClose:()=>{n(!1)},children:(0,a.jsx)(s.default,{saveReturnTo:!0,className:"w-full p-4 lg:p-8",description:e,title:r})})}let u=(0,l.createContext)({loginOpen:!1,setLoginOpen:i()}),d=()=>(0,l.useContext)(u);function f(e){let{children:t}=e,[n,r]=(0,l.useState)(""),[i,s]=(0,l.useState)(!1),[o,d]=(0,l.useState)("");return(0,a.jsxs)(u.Provider,{value:{description:n,loginOpen:i,setLoginOpen:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&(t.title&&d(t.title||""),t.description&&r(t.description||"")),s(e)},title:o},children:[t,(0,a.jsx)(c,{})]})}},3801:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(2265),r=n(91279);function i(e){let{element:t,onClose:n,open:i}=e,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,a.useEffect)(()=>{function e(e){if((0,r.E)(e)||!t.current||!i)return;let a=e.target;for(;a;){if(a===t.current||"svg"===a.nodeName.toLowerCase())return;a=a.parentNode}n()}function a(e){"Escape"===e.key&&n()}return i&&(document.addEventListener("click",e),document.addEventListener("keyup",a)),()=>{document.removeEventListener("click",e),document.removeEventListener("keyup",a)}},l.concat(t,n,i))}},69921:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(57437),r=n(56800),i=n.n(r);function l(e){let{className:t}=e;return(0,a.jsxs)("svg",{className:i()("icon",t),height:"32",viewBox:"0 0 32 32",width:"32",children:[(0,a.jsx)("path",{d:"M5 17H27C27.5523 17 28 16.5523 28 16C28 15.4477 27.5523 15 27 15H5C4.44772 15 4 15.4477 4 16C4 16.5523 4.44772 17 5 17Z"}),(0,a.jsx)("path",{d:"M25.5858 16L17.2929 24.2929C17.1054 24.4804 17 24.7348 17 25C17 25.2652 17.1054 25.5196 17.2929 25.7071C17.4804 25.8946 17.7348 26 18 26C18.2652 26 18.5196 25.8946 18.7071 25.7071L27.7071 16.7071C28.0976 16.3166 28.0976 15.6834 27.7071 15.2929L18.7071 6.29289C18.5196 6.10536 18.2652 6 18 6C17.7348 6 17.4804 6.10536 17.2929 6.29289C17.1054 6.48043 17 6.73478 17 7C17 7.26522 17.1054 7.51957 17.2929 7.70711L25.5858 16Z"})]})}},73293:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(57437),r=n(56800),i=n.n(r);function l(e){let{className:t}=e;return(0,a.jsxs)("svg",{className:i()("icon",t),height:"32",viewBox:"0 0 32 32",width:"32",children:[(0,a.jsx)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 23.9859 5.85094 30.6053 13.5 31.8056V20.625H9.4375V16H13.5V12.475C13.5 8.465 15.8888 6.25 19.5434 6.25C21.2934 6.25 23.125 6.5625 23.125 6.5625V10.5H21.1075C19.12 10.5 18.5 11.7334 18.5 13V16H22.9375L22.2281 20.625H18.5V31.8056C26.1491 30.6053 32 23.9859 32 16Z",fill:"#1877F2"}),(0,a.jsx)("path",{d:"M22.2281 20.625L22.9375 16H18.5V13C18.5 11.7347 19.12 10.5 21.1075 10.5H23.125V6.5625C23.125 6.5625 21.2941 6.25 19.5434 6.25C15.8888 6.25 13.5 8.465 13.5 12.475V16H9.4375V20.625H13.5V31.8056C15.1566 32.0648 16.8434 32.0648 18.5 31.8056V20.625H22.2281Z",fill:"white"})]})}},45311:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(57437),r=n(56800),i=n.n(r);function l(e){let{className:t}=e;return(0,a.jsxs)("svg",{className:i()("icon",t),height:"32",viewBox:"0 0 32 32",width:"32",children:[(0,a.jsx)("path",{d:"M31.688 16.3686C31.688 15.2809 31.5998 14.1874 31.4117 13.1174H16.3199V19.2787H24.9623C24.6036 21.2659 23.4513 23.0237 21.764 24.1408V28.1386H26.92C29.9478 25.3519 31.688 21.2365 31.688 16.3686Z",fill:"#4285F4"}),(0,a.jsx)("path",{d:"M16.32 32.0011C20.6352 32.0011 24.2744 30.5842 26.9259 28.1385L21.7699 24.1407C20.3354 25.1166 18.4835 25.6693 16.3259 25.6693C12.1517 25.6693 8.61246 22.8532 7.34257 19.067H2.02197V23.1883C4.73812 28.5912 10.2704 32.0011 16.32 32.0011Z",fill:"#34A853"}),(0,a.jsx)("path",{d:"M7.33666 19.067C6.66645 17.0798 6.66645 14.9281 7.33666 12.941V8.8197H2.02195C-0.247388 13.3407 -0.247388 18.6672 2.02195 23.1882L7.33666 19.067Z",fill:"#FBBC04"}),(0,a.jsx)("path",{d:"M16.32 6.33288C18.6011 6.29761 20.8057 7.15596 22.4578 8.73156L27.0258 4.16349C24.1333 1.44734 20.2943 -0.0459547 16.32 0.00107822C10.2704 0.00107822 4.73812 3.41096 2.02197 8.81974L7.33669 12.941C8.6007 9.14897 12.1458 6.33288 16.32 6.33288Z",fill:"#EA4335"})]})}},76232:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(57437),r=n(56800),i=n.n(r);function l(e){let{className:t}=e;return(0,a.jsxs)("svg",{className:i()("icon",t),height:"32",viewBox:"0 0 32 32",width:"32",children:[(0,a.jsx)("path",{d:"M17.5354 4.0917C17.3767 4.01685 17.1996 3.9869 17.0244 4.00525C16.8491 4.02361 16.6827 4.08952 16.5437 4.19555L8.29165 10.4611H2.95554C2.45457 10.4611 1.97413 10.6556 1.61989 11.0018C1.26566 11.3481 1.06665 11.8177 1.06665 12.3073V19.6921C1.06665 20.1817 1.26566 20.6513 1.61989 20.9976C1.97413 21.3438 2.45457 21.5383 2.95554 21.5383H8.29165L16.5437 27.8038C16.7085 27.931 16.9123 28.0001 17.1222 28C17.2651 27.9983 17.406 27.9669 17.5354 27.9077C17.6948 27.8319 17.8291 27.7138 17.9231 27.5669C18.017 27.4199 18.0668 27.2502 18.0667 27.0769V4.92249C18.0668 4.74924 18.017 4.57945 17.9231 4.43253C17.8291 4.28561 17.6948 4.1675 17.5354 4.0917Z"}),(0,a.jsx)("path",{d:"M26.4226 9.26647C26.3081 9.18146 26.1723 9.11417 26.0231 9.06845C25.8738 9.02273 25.714 8.99948 25.5528 9.00001C25.3915 9.00054 25.232 9.02485 25.0833 9.07156C24.9346 9.11826 24.7996 9.18644 24.6861 9.2722C24.5725 9.35797 24.4827 9.45964 24.4216 9.5714C24.3606 9.68317 24.3295 9.80285 24.3302 9.92361C24.3309 10.0444 24.3634 10.1638 24.4258 10.2752C24.4881 10.3866 24.5792 10.4876 24.6937 10.5726C26.5259 11.9493 27.5547 13.8136 27.5547 15.7572C27.5547 17.7008 26.5259 19.5652 24.6937 20.9418C24.5785 21.0261 24.487 21.1268 24.4245 21.2379C24.362 21.3491 24.3298 21.4685 24.3298 21.5891C24.3298 21.7097 24.362 21.8291 24.4245 21.9403C24.487 22.0515 24.5785 22.1522 24.6937 22.2365C24.9222 22.405 25.2299 22.4996 25.5505 22.5C25.8756 22.499 26.1877 22.4047 26.4226 22.2365C28.7136 20.5142 29.9999 18.1824 29.9999 15.7515C29.9999 13.3206 28.7136 10.9887 26.4226 9.26647Z"}),(0,a.jsx)("path",{d:"M20.3638 12.509C20.2486 12.5933 20.1571 12.694 20.0946 12.8051C20.0321 12.9163 19.9999 13.0357 19.9999 13.1563C19.9999 13.2769 20.0321 13.3963 20.0946 13.5075C20.1571 13.6187 20.2486 13.7194 20.3638 13.8037C21.0514 14.3211 21.4375 15.0215 21.4375 15.7515C21.4375 16.4815 21.0514 17.1818 20.3638 17.6993C20.2486 17.7836 20.1571 17.8843 20.0946 17.9954C20.0321 18.1066 19.9999 18.226 19.9999 18.3466C19.9999 18.4672 20.0321 18.5866 20.0946 18.6978C20.1571 18.809 20.2486 18.9097 20.3638 18.994C20.4749 19.0795 20.6082 19.147 20.7556 19.1924C20.903 19.2377 21.0613 19.2599 21.2206 19.2575C21.3822 19.2601 21.5429 19.2381 21.6928 19.1928C21.8427 19.1475 21.9788 19.0798 22.0927 18.994C23.2382 18.1329 23.8813 16.9669 23.8813 15.7515C23.8813 14.536 23.2382 13.3701 22.0927 12.509C21.8632 12.3376 21.5524 12.2413 21.2282 12.2413C20.9041 12.2413 20.5932 12.3376 20.3638 12.509Z"})]})}},91279:function(e,t,n){"use strict";function a(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}n.d(t,{E:function(){return a}})},20087:function(e,t,n){"use strict";n.d(t,{Y:function(){return c},h:function(){return u}});var a=n(13839),r=n.n(a),i=n(83315),l=n(58878),s=n(26254),o=n(94520);async function c(e){let t=e.filter(e=>"text"===e.type&&!!e.content.trim());if(!t.length)return[e];let n=await (0,o.Z)("/api/tts/v1",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokens:t})}),{job:a,tokens:l}=await n.json(),s=r()(e);for(let e of l){let t=s.find(t=>t.id===e.id);t&&(a&&!e.cached?(0,i.xU)(t,a):(t.url=e.output,t.hash=e.hash))}return[s,a]}async function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new AudioContext;return Promise.all(e.map(async e=>{if((0,i.fU)(e.jobs||[]))return e;let n=(0,l.D)(e);if(!n)return e;let a=await fetch(n),r=await a.arrayBuffer(),o=await t.decodeAudioData(r);return e.trim&&(o=(0,s.Z)(o,e.trim)),e.audioBuffer=o,e.duration=o.duration,e}))}},35396:function(e,t,n){"use strict";function a(e){var t;let n=document.getSelection();if(!n)return;let a=null===(t=n.anchorNode)||void 0===t?void 0:t.parentElement;if(n.anchorNode&&n.focusNode&&(null==a?void 0:a.closest(e))){let e=n.anchorNode,t=n.anchorOffset,a=n.focusNode,r=n.focusOffset;return(e===a&&t>r||4===e.compareDocumentPosition(a))&&(e=n.focusNode,t=n.focusOffset,a=n.anchorNode,r=n.anchorOffset),{startNode:e,startOffset:t,endNode:a,endOffset:r,isCollapsed:n.isCollapsed,text:n.toString()}}}function r(){let e=document.getSelection();(null==e?void 0:e.collapseToEnd)&&e.collapseToEnd()}function i(e){let t=document.createRange();t.selectNodeContents(e),t.collapse(!1);let n=document.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}function l(e,t){let n=document.createRange();n.setStart(e,t);let a=document.getSelection();a&&(a.removeAllRanges(),a.addRange(n))}function s(e){let t=document.createRange();t.selectNodeContents(e);let n=document.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}n.d(t,{MO:function(){return r},Mf:function(){return a},SO:function(){return i},Z5:function(){return l},lt:function(){return s}})},9747:function(e,t,n){"use strict";n.d(t,{h:function(){return c},i:function(){return d}});var a=n(13839),r=n.n(a),i=n(28227),l=n.n(i),s=n(87106),o=n(57897);function c(e,t){let n=e.startTime||0,a=t.startTime||0;return n===a?-1:n-a}function u(e){let t;return e.sort(c).forEach(e=>{var n;if(!t){("text"!==e.type||e.content.trim())&&(t=e),("video"===e.type||"image"===e.type)&&(e.startTime=0);return}let a=(null!==(n=t.startTime)&&void 0!==n?n:0)+(0,o.Z)(t,{addTrim:!1});"video"===e.type||"image"===e.type?e.startTime=a:(e.startTime||0)<a&&(e.startTime=a),("text"!==e.type||e.content.trim())&&(t=e)}),e}function d(e){let t=r()(e);return Object.values(l()(t,e=>(null==e.startTime&&(e.startTime=0),"number"!=typeof e.lane&&(e.lane=(0,s.eH)(e,t)),e.lane))).map(u).flat()}},58878:function(e,t,n){"use strict";n.d(t,{D:function(){return l},l:function(){return i}});var a=n(38022),r=n(59262);function i(e){var t;let n=null===(t=e.modifiers[0])||void 0===t?void 0:t.value;if(n&&("sound"===e.type||"song"===e.type))return n.startsWith("blob:")?n:(n.includes("web/")||n.includes("global/")||(n="/global/sample/".concat(n,".mp3")),(0,a.Z)(n))}function l(e){let t,n;if(e.jobsApplied){let n=e.jobsApplied.length;for(;n--;){let r=e.jobsApplied[n];if("filter"===r.type||"hifivc"===r.type){t=(0,a.Z)(r.url);break}}}return t||"text"!==e.type||(t=(0,a.Z)(e.url)),!t&&(n=(0,r.yb)("sound",e))&&(t=i(n)),t}},26254:function(e,t,n){"use strict";function a(e,t){let n=e.sampleRate,a=e.numberOfChannels,r=new AudioBuffer({length:e.length-t.in*n-t.out*n,numberOfChannels:a,sampleRate:n});for(let i=0;i<a;i++){let a=e.getChannelData(i);r.copyToChannel(a.subarray(t.in*n,t.out?-(t.out*n):void 0),i)}return r}n.d(t,{Z:function(){return a}})},90461:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(57437),r=n(56800),i=n.n(r),l=n(87138),s=n(16463);function o(e){let{className:t}=e;return(0,a.jsx)("svg",{className:i()("icon",t),height:"32",viewBox:"0 0 32 32",width:"32",children:(0,a.jsx)("path",{d:"M27.7901 22.8599C27.3465 23.8848 26.8215 24.8281 26.2131 25.6954C25.3838 26.8778 24.7048 27.6962 24.1815 28.1506C23.3704 28.8966 22.5013 29.2787 21.5706 29.3004C20.9025 29.3004 20.0967 29.1103 19.1588 28.7246C18.2178 28.3408 17.3531 28.1506 16.5624 28.1506C15.7331 28.1506 14.8437 28.3408 13.8924 28.7246C12.9396 29.1103 12.1721 29.3113 11.5853 29.3312C10.6928 29.3692 9.80323 28.9763 8.91529 28.1506C8.34856 27.6563 7.6397 26.809 6.79051 25.6085C5.87939 24.3266 5.13033 22.84 4.5435 21.1453C3.91503 19.3147 3.59998 17.5421 3.59998 15.8259C3.59998 13.8601 4.02475 12.1646 4.87557 10.7438C5.54424 9.60258 6.43381 8.70233 7.54717 8.04144C8.66054 7.38056 9.86353 7.04378 11.159 7.02223C11.8679 7.02223 12.7975 7.2415 13.9527 7.67243C15.1046 8.10482 15.8443 8.32408 16.1685 8.32408C16.411 8.32408 17.2327 8.0677 18.6256 7.55655C19.9428 7.08253 21.0546 6.88625 21.9653 6.96357C24.4332 7.16274 26.2873 8.1356 27.5204 9.8883C25.3132 11.2256 24.2214 13.0988 24.2431 15.5017C24.263 17.3733 24.942 18.9308 26.2764 20.1675C26.8812 20.7415 27.5566 21.1851 28.308 21.5001C28.145 21.9727 27.973 22.4254 27.7901 22.8599ZM22.1301 0.5872C22.1301 2.0542 21.5941 3.42394 20.5259 4.69175C19.2367 6.19893 17.6774 7.06985 15.9864 6.93242C15.9648 6.75643 15.9524 6.5712 15.9524 6.37656C15.9524 4.96824 16.5654 3.46105 17.6542 2.22873C18.1977 1.60478 18.889 1.08598 19.7274 0.672118C20.5639 0.264434 21.3551 0.038975 22.0993 0.000366211C22.121 0.196481 22.1301 0.392609 22.1301 0.587181V0.5872Z",fill:"white"})})}var c=n(73293),u=n(45311);function d(e){let{className:t,saveReturnTo:n}=e,r=(0,s.usePathname)();function d(){n&&(document.cookie="return_to=".concat(r,"; path=/"))}return(0,a.jsxs)("div",{className:i()("flex flex-col items-stretch justify-start gap-2",t),children:[(0,a.jsxs)(l.default,{className:"btn btn-secondary login-link btn-large gap-4",href:"/api/auth/google",prefetch:!1,onClick:d,children:[(0,a.jsx)(u.Z,{className:"size-[26px]"}),"Continue using Google"]}),(0,a.jsxs)(l.default,{className:"btn btn-secondary login-link btn-large gap-4",href:"/api/auth/facebook",prefetch:!1,onClick:d,children:[(0,a.jsx)(c.Z,{className:"size-[26px]"}),"Continue using Facebook"]}),(0,a.jsxs)(l.default,{className:"btn btn-secondary login-link btn-large gap-4",href:"/api/auth/apple",prefetch:!1,onClick:d,children:[(0,a.jsx)(o,{className:"size-[26px]"}),"Continue using Apple"]})]})}},92516:function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var a=n(57437),r=n(56800),i=n.n(r),l=n(16463),s=n(2265),o=n(41894),c=n(90461);function u(e){let{className:t,description:n,saveReturnTo:r,title:u}=e,d=(0,l.useSearchParams)(),f=null==d?void 0:d.get("error"),{addToast:p}=(0,o.e)();return u||(u="Log in"),n||(n="Don't worry. If you don't have an account, one will be created for you."),(0,s.useEffect)(()=>{f&&requestAnimationFrame(()=>{p({type:"error",message:f})})},[f]),(0,a.jsxs)("div",{className:i()("flex flex-col bg-white text-background",t),children:[(0,a.jsx)("h2",{className:"mb-2 text-background",children:u}),(0,a.jsx)("p",{className:"mb-4",children:n}),(0,a.jsx)(c.Z,{saveReturnTo:r})]})}},22170:function(e,t,n){var a=n(63117),r=n(49423),i=n(49666),l=Math.max,s=Math.min;e.exports=function(e,t,n){var o,c,u,d,f,p,x=0,m=!1,g=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=o,a=c;return o=c=void 0,x=t,d=e.apply(a,n)}function y(e){var n=e-p,a=e-x;return void 0===p||n>=t||n<0||g&&a>=u}function C(){var e,n,a,i=r();if(y(i))return b(i);f=setTimeout(C,(e=i-p,n=i-x,a=t-e,g?s(a,u-n):a))}function b(e){return(f=void 0,h&&o)?v(e):(o=c=void 0,d)}function j(){var e,n=r(),a=y(n);if(o=arguments,c=this,p=n,a){if(void 0===f)return x=e=p,f=setTimeout(C,t),m?v(e):d;if(g)return clearTimeout(f),f=setTimeout(C,t),v(p)}return void 0===f&&(f=setTimeout(C,t)),d}return t=i(t)||0,a(n)&&(m=!!n.leading,u=(g="maxWait"in n)?l(i(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),j.cancel=function(){void 0!==f&&clearTimeout(f),x=0,o=p=c=f=void 0},j.flush=function(){return void 0===f?d:b(r())},j}},49423:function(e,t,n){var a=n(2381);e.exports=function(){return a.Date.now()}},48527:function(e,t,n){var a=n(22170),r=n(63117);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),a(e,t,{leading:i,maxWait:t,trailing:l})}}},function(e){e.O(0,[5501,7524,3054,231,3699,9518,8227,8675,5948,8112,4588,2971,7023,1744],function(){return e(e.s=29934)}),_N_E=e.O()}]);