1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1704],{2734:(e,t,a)=>{a.d(t,{E:()=>n});var s=a(70665),r=a(55209),l=a(38425);function n(e){var t;let{user:a,isPending:n}=(0,s.i)(),o=null!==(t=null==a?void 0:a.id)&&void 0!==t?t:null,i=(0,l.useRef)(e);i.current=e;let c=(0,l.useRef)(null),[d,u]=(0,l.useState)(null),m=JSON.stringify([e.mode,o]),p=(0,l.useRef)(null);return n||d!==m||(p.current={mode:e.mode,ownerId:o,form:e.form}),(0,l.useEffect)(()=>{if(n)return;let t=c.current;if(!t||t.ownerId!==o||t.mode!==e.mode){var a,s;let l=!!t&&t.ownerId!==o,n=(0,r.ZP)(e.mode,o,!t||null===t.ownerId);if(c.current={mode:e.mode,ownerId:o},!t&&(null===(a=(s=i.current).skipInitialRestore)||void 0===a?void 0:a.call(s))){u(m);return}(l||(null==t?void 0:t.mode)!==e.mode)&&i.current.onReset(),n&&i.current.onRestore(n),u(m);return}d===m&&(0,r.QQ)(e.mode,o,e.form)},[m,n,o,e.mode,e.form,d]),(0,l.useEffect)(()=>{let e=()=>{let e=p.current;e&&(0,r.QQ)(e.mode,e.ownerId,e.form)};return window.addEventListener("pagehide",e),window.addEventListener("beforeunload",e),()=>{e(),window.removeEventListener("pagehide",e),window.removeEventListener("beforeunload",e)}},[]),!n&&d===m}},25938:(e,t,a)=>{a.d(t,{q:()=>$});var s=a(62573),r=a(9732),l=a(96933),n=a(90944),o=a(46514),i=a(97237),c=a(6127),d=a(8172
16),u=a(86861),m=a(34806),p=a(62625);function x(e){let{isOpen:t,onClose:a,imageSrc:r,imageAlt:l,prompt:n,onDownload:o}=e,i=(0,p.c3)("Common");return(0,s.jsx)(u.lG,{open:t,onOpenChange:a,children:(0,s.jsxs)(u.Cf,{className:"max-w-[90vw] w-[90vw] md:w-[85vw] lg:w-[80vw] h-[90dvh] md:h-[85dvh] p-0 overflow-hidden",children:[(0,s.jsx)(u.L3,{className:"sr-only",children:i("imagePreview")}),(0,s.jsx)("div",{className:"relative w-full h-full bg-black/5 dark:bg-black/20 flex items-center justify-center p-6 md:p-8",children:(0,s.jsx)(m.default,{src:r,alt:l,width:2048,height:2048,className:"max-w-full max-h-full object-contain rounded-lg",priority:!0})})]})})}var h=a(30636),f=a(37437),g=a(50441),v=a(70665),b=a(65056),j=a(96427);function y(e){return"pending"===e||"running"===e||"processing"===e}function w(e){return"success"===e||"completed"===e||"failed"===e}var N=a(28941),k=a(55370),z=a(21271),A=a(22630),C=a(83421),I=a(50847),D=a(34720),E=a(79265),R=a(37687),L=a(88903),S=a(27082),M=a(46966);let U=(0,a(59017).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);var O=a(45144),F=a(95817),T=a(61929),P=a(20035),V=a(38425),H=a(72471);function G(e){let{src:t}=e,[a,r]=(0,V.useState)(!1);return(0,s.jsxs)("div",{className:"absolute inset-0 bg-black flex items-center justify-center overflow-hidden",children:[t&&!a&&(0,s.jsx)("video",{src:"".concat(t,"#t=0.1"),preload:"metadata",muted:!0,playsInline:!0,onError:()=>r(!0),className:"absolute inset-0 w-full h-full object-cover pointer-events-none"}),(0,s.jsx)("div",{className:"relative z-10 size-11 rounded-full bg-white/15 ring-1 ring-white/30 backdrop-blur-md flex items-center justify-center transition-transform group-hover/card:scale-110",children:(0,s.jsx)(A.A,{className:"size-5 text-white ms-0.5",fill:"currentColor"})})]})}function Y(e){let{urls:t,onImageClick:a}=e,r=(0,p.c3)("Components.carousel"),[l,n]=(0,V.useState)(0);(0,V.useEffect)(()=>{if(t.length<=1)return;let e=setInterval(()=>{n(e=>(e+1)%t.length)},4e3);return()=>clearInterval(e)},[t.length]);let o=()=>{n(e=>(e-1+t.length)%t.length)},i=()=>{n(e=>(e+1)%t.length)};return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"relative w-full group",children:[(0,s.jsxs)("div",{className:"relative aspect-[4/3] w-full max-h-[400px] cursor-pointer rounded-xl overflow-hidden bg-muted",onClick:()=>a({src:t[l],alt:"Example ".concat(l+1),prompt:"Example showcase image"}),children:[t.map((e,t)=>(0,s.jsx)("div",{className:"absolute inset-0 transition-opacity duration-700 ".concat(t===l?"opacity-100 z-10":"opacity-0 z-0"),children:(0,s.jsx)(m.default,{src:e,alt:"Example ".concat(t+1),fill:!0,className:"object-contain",sizes:"(max-width: 1280px) 100vw, 50vw",priority:0===t})},t)),(0,s.jsx)("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors flex items-center justify-center opacity-0 group-hover:opacity-100 z-20",children:(0,s.jsx)(C.A,{className:"size-8 text-white drop-shadow-lg"})})]}),t.length>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button","aria-label":r("previous"),onClick:e=>{e.stopPropagation(),o()},className:"absolute start-3 top-1/2 -translate-y-1/2 z-30 size-12 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg flex items-center justify-center cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity hover:bg-background hover:scale-110",children:(0,s.jsx)(I.A,{className:"size-6 rtl:-scale-x-100"})}),(0,s.jsx)("button",{type:"button","aria-label":r("next"),onClick:e=>{e.stopPropagation(),i()},className:"absolute end-3 top-1/2 -translate-y-1/2 z-30 size-12 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg flex items-center justify-center cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity hover:bg-background hover:scale-110",children:(0,s.jsx)(D.A,{className:"size-6 rtl:-scale-x-100"})})]})]}),t.length>1&&(0,s.jsx)("div",{className:"flex justify-center gap-1",children:t.map((e,t)=>(0,s.jsx)("button",{type:"button","aria-label":"Go to image ".concat(t+1),onClick:()=>n(t),className:"flex items-center justify-center min-w-[44px] min-h-[44px] bg-transparent cursor-pointer",children:(0,s.jsx)("span",{className:"size-2 roun
1ded-full transition-colors ".concat(t===l?"bg-primary":"bg-muted-foreground/30")})},"dot-".concat(t)))})]})}function Z(e){let{urls:t}=e,a=(0,p.c3)("Components.carousel"),r=(0,p.c3)("Common"),[l,n]=(0,V.useState)(0),o=(0,V.useRef)([]);(0,V.useEffect)(()=>{for(let e=0;e<o.current.length;e++){let t=o.current[e];t&&e!==l&&t.pause()}},[l]);let i=()=>{n(e=>(e-1+t.length)%t.length)},c=()=>{n(e=>(e+1)%t.length)};return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"relative w-full group",children:[(0,s.jsx)("div",{className:"relative aspect-video w-full max-h-[400px] rounded-xl overflow-hidden bg-black",children:t.map((e,t)=>(0,s.jsx)("div",{className:"absolute inset-0 transition-opacity duration-700 ".concat(t===l?"opacity-100 z-10":"opacity-0 z-0"),children:(0,s.jsx)("video",{ref:e=>{o.current[t]=e},src:e,controls:!0,loop:!0,playsInline:!0,preload:"metadata",className:"w-full h-full object-contain",children:(0,s.jsx)("track",{kind:"captions",src:"/captions/empty.vtt",srcLang:"en",label:r("noCaptions")})})},t))}),t.length>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button","aria-label":a("previous"),onClick:e=>{e.stopPropagation(),i()},className:"absolute start-3 top-1/2 -translate-y-1/2 z-30 size-12 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg flex items-center justify-center cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity hover:bg-background hover:scale-110",children:(0,s.jsx)(I.A,{className:"size-6 rtl:-scale-x-100"})}),(0,s.jsx)("button",{type:"button","aria-label":a("next"),onClick:e=>{e.stopPropagation(),c()},className:"absolute end-3 top-1/2 -translate-y-1/2 z-30 size-12 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg flex items-center justify-center cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity hover:bg-background hover:scale-110",children:(0,s.jsx)(D.A,{className:"size-6 rtl:-scale-x-100"})})]})]}),t.length>1&&(0,s.jsx)("div",{className:"flex justify-center gap-1",children:t.map((e,t)=>(0,s.jsx)("button",{type:"button","aria-label":"Go to video ".concat(t+1),onClick:()=>n(t),className:"flex items-center justify-center min-w-[44px] min-h-[44px] bg-transparent cursor-pointer",children:(0,s.jsx)("span",{className:"size-2 rounded-full transition-colors ".concat(t===l?"bg-primary":"bg-muted-foreground/30")})},"dot-".concat(t)))})]})}let $=(0,V.forwardRef)((e,t)=>{var a;let{user:r}=(0,v.i)();return(0,s.jsx)(q,{...e,ref:t},JSON.stringify([null!==(a=null==r?void 0:r.id)&&void 0!==a?a:null,e.type]))}),q=(0,V.forwardRef)((e,t)=>{let{type:a,currentGeneration:u,onTaskSettled:A}=e,C=(0,p.c3)("Generator"),$=(0,p.c3)("Common"),q=(0,P.Ym)(),[B,Q]=(0,V.useState)([]),[_,J]=(0,V.useState)(!0),[W,K]=(0,V.useState)(1),[X,ee]=(0,V.useState)(0),[et,ea]=(0,V.useState)(null),[es,er]=(0,V.useState)(null),[el,en]=(0,V.useState)(null),[eo,ei]=(0,V.useState)(null),ec=(0,V.useRef)(A);ec.current=A;let ed=(0,b.tx)(),eu=(0,b.iN)(),em=e=>{let t=(0,k.tU)(e);if(!t){H.o.error(C("history.recreateUnavailable"));return}(0,k.yi)(t);let a=z.cL[t.mode];eu===a?(window.dispatchEvent(new CustomEvent(k.Dg)),window.scrollTo({top:0,behavior:"smooth"})):ed.push(a)},ep=(0,g.x)(),{user:ex}=(0,v.i)(),eh=null==ex?void 0:ex.id,ef=(0,V.useRef)(0),eg=(0,V.useCallback)(async()=>{let e=++ef.current;if(!eh){Q([]),ee(0),J(!1);return}try{J(!0);let t=(W-1)*6,s=await (0,r.I)(6,t,a);if(e!==ef.current)return;s.success&&(Q(s.creations),ee(s.total))}catch(e){console.error("Error loading creations:",e)}finally{e===ef.current&&J(!1)}},[eh,W,a]);(0,V.useEffect)(()=>(eg(),()=>{ef.current+=1}),[eg]);let ev=B.some(e=>"pending"===e.status);(0,V.useEffect)(()=>{if(eh&&ev)return function(e){let{loadPage:t,onPage:a,onError:s}=e,r=!1,l=!1,n=async()=>{if(!r&&!l){l=!0;try{let e=await t();!r&&e.success&&a(e)}catch(e){r||s(e)}finally{l=!1}}},o=setInterval(()=>void n(),5e3);return()=>{r=!0,clearInterval(o)}}({loadPage:()=>(0,r.I)(6,(W-1)*6,a),onPage:e=>{Q(e.creations),ee(e.total)},onError:e=>console.error("Error refreshing pending creations:",e)})},[eh,W,a,ev]);let[eb,ej]=(0,V.useState)([]),ey=B.filter(e=>y(e.status)&&"pending"!==e.status).map(e=>e.taskId).join(","),ew=(null==u?void 0:u.status)==="running"?u.taskId:"";(0,V.useEffect)(()=>
1{let e=[...ey.split(",").filter(Boolean),...ew?[ew]:[]];0!==e.length&&ej(t=>{let a=[...t];for(let t of e)a.includes(t)||a.push(t);return a.length===t.length?t:a})},[ey,ew]);let eN=eb.join(",");(0,V.useEffect)(()=>{if(!eN)return;let e=eN.split(","),t=!1,a=!1,s=async()=>{if(!a&&!t){a=!0;try{let a=await Promise.all(e.map(async e=>{try{let t=await fetch("/api/creations/".concat(e));if(!t.ok)return null;let a=await t.json();return(null==a?void 0:a.success)&&a.creation?a.creation:null}catch(e){return null}}));if(t)return;let r=a.filter(e=>!!e&&w(e.status));if(r.length>0){var s;for(let e of(Q(e=>e.map(e=>{var t;return null!==(t=r.find(t=>t.taskId===e.taskId))&&void 0!==t?t:e})),ej(e=>e.filter(e=>!r.some(t=>t.taskId===e))),r))null===(s=ec.current)||void 0===s||s.call(ec,e);eg()}}finally{a=!1}}},r=setInterval(()=>void s(),5e3);return()=>{t=!0,clearInterval(r)}},[eN,eg]),(0,V.useImperativeHandle)(t,()=>({refresh:()=>{K(1),eg()}}));let ek=async(e,t)=>{let a=(0,N.l)({taskId:e},"".concat(t,"-").concat(e,".").concat((0,N.E)(t)));H.o.promise(a,{loading:C("preview.downloading"),success:C("preview.downloadStarted"),error:C("preview.downloadFailed")});try{await a}catch(e){console.error("Download failed:",e)}},ez=async e=>{try{en(e),(await (0,l.u)(e)).success&&(1===B.length&&W>1?K(e=>e-1):eg())}catch(e){console.error("Error deleting creation:",e)}finally{en(null)}},eA=Math.ceil(X/6),eC="image"===a,eI=eC?E.A:R.A,eD=eC?(0,f.C7)():(0,f.iW)(),eE=eD&&eD.length>0,eR=!ex&&eE;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Zp,{className:"h-fit @4xl/generator:h-full @4xl/generator:max-h-[calc(100vh-6.5rem)] flex flex-col overflow-hidden scroll-host",children:[(0,s.jsxs)(c.aR,{className:"shrink-0",children:[(0,s.jsx)(c.ZB,{className:"text-xl font-bold",children:eR?eC?C("history.exampleImages"):C("history.exampleVideos"):eC?C("image.generatedImages"):C("video.generatedVideos")}),(0,s.jsx)(c.BT,{children:eR?C("history.exampleDescription"):C("history.description",{count:X})})]}),(0,s.jsx)(c.Wu,{className:"flex-1 overflow-y-auto scrollbar-hover",children:_&&0===B.length?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary mb-4"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:C("history.loading")})]}):eR&&eD?eC?(0,s.jsx)(Y,{urls:eD,onImageClick:ea}):(0,s.jsx)(Z,{urls:eD}):ex&&(0!==B.length||u)?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"relative ".concat(_?"opacity-50 pointer-events-none":""),children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:B.map(e=>{var t,a;let r=("success"===e.status||"completed"===e.status)&&!!e.resultUrl,l=r||"failed"===e.status;return(0,s.jsxs)("div",{className:"group/card relative aspect-[16/10] overflow-hidden rounded-xl border border-border/50 bg-muted/30 transition-all hover:-translate-y-0.5 hover:border-border hover:shadow-xl hover:shadow-black/30",children:[(0,s.jsxs)("div",{role:"button",tabIndex:l?0:-1,"aria-disabled":!l,"aria-label":e.prompt,onClick:()=>{l&&er(e)},onKeyDown:t=>{l&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),er(e))},className:"absolute inset-0 text-start ".concat(l?"cursor-pointer":"cursor-default"),children:[r?"video"===e.type?(0,s.jsx)(G,{src:null!==(a=e.resultUrl)&&void 0!==a?a:""}):(0,s.jsx)(m.default,{src:e.resultUrl,alt:e.prompt,fill:!0,loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1280px) 50vw, 33vw",className:"object-cover transition-transform duration-300 group-hover/card:scale-[1.03]"}):y(e.status)?(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:(0,s.jsx)(n.s,{type:"video"===e.type?"video":"image",startedAt:new Date(e.createdAt).getTime(),estimatedSeconds:(0,j.AP)("video"===e.type?"video":"image",e.mode&&e.model?(0,j.Ac)(e.mode,e.model):void 0)})}):(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 bg-muted/40 px-6 text-center",children:[(0,s.jsx)("div",{className:"flex size-10 items-center justify-center rounded-full bg-destructive/15 text-destructive",children:(0,s.jsx)(L.A,{className:"size-5"})}),(0,s.jsx)("p",{className:"max-w-[26ch] text-balance text-xs font-medium leading-snug text-destructive",children:ep(e.errorCode)})]}),(0,s.jsx)("div",{className:"pointer-events-none absolute start-2.5 top-2.5 z-20 flex size-7 items-center justify-center rounded-lg border border-white/15 bg-black/55 text-white backdrop-blur-sm",children:"video"===e.type?(0,s.jsx)(R.A,{className:"size-3.5"}):(0,s.jsx)(E.A,{className:"size-3.5"})}),r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 z-10 bg-gradient-to-t from-black/85 via-black/40 to-transparent opacity-0 transition-opacity group-hover/card:opacity-100"}),(0,s.jsxs)("div",{className:"pointer-events-none absolute inset-x-3 bottom-3 z-20 translate-y-1 opacity-0 transition-all group-hover/card:translate-y-0 group-hover/card:opacity-100",children:[(0,s.jsx)("p",{className:"mb-2 truncate text-sm font-semibold text-white drop-shadow",children:e.prompt}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.model&&(0,s.jsx)("span",{className:"inline-flex h-6 items-center rounded-full bg-white/90 px-2.5 text-xs font-semibold text-black",children:e.model}),null!=e.credits&&(0,s.jsxs)("span",{className:"inline-flex h-6 items-center gap-1 rounded-full bg-white/90 px-2.5 text-xs font-semibold text-black",children:[(0,s.jsx)(S.A,{className:"size-3 text-yellow-600"}),e.credits]})]}),(0,s.jsx)("p",{className:"mt-2 text-xs tabular-nums text-white/75",children:function(e,t){let a="string"==typeof e?new Date(e):e,s=new Date,r=new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime(),l=Math.round((new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime()-r)/864e5);if(0===l||-1===l){let e=a.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit"});if(0===l)return e;let s=new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(l,"day"),r=t.toLowerCase().startsWith("en")?s.charAt(0).toLocaleUpperCase(t)+s.slice(1):s;return"".concat(r," ").concat(e)}return a.toLocaleDateString(t)}(e.createdAt,q)})]})]})]}),w(e.status)&&(0,s.jsx)("div",{className:"absolute end-2.5 top-2.5 z-30 transition-opacity ".concat(r?"opacity-0 group-hover/card:opacity-100 group-focus-within/card:opacity-100":"opacity-100"),children:(0,s.jsxs)(d.rI,{children:[(0,s.jsx)(d.ty,{asChild:!0,children:(0,s.jsx)("button",{type:"button","aria-label":$("more"),disabled:el===e.id,className:"flex size-8 cursor-pointer items-center justify-center rounded-full border border-white/15 bg-black/70 text-white backdrop-blur-sm hover:bg-black/85",children:el===e.id?(0,s.jsx)(M.A,{className:"size-4 animate-spin"}):(0,s.jsx)(U,{className:"size-4"})})}),(0,s.jsxs)(d.SQ,{align:"end",className:"min-w-[140px]",children:[r&&(0,s.jsxs)(d._2,{onSelect:()=>ek(e.taskId,e.type),children:[(0,s.jsx)(O.A,{className:"size-4"}),C("history.download")]}),(null===(t=e.requestInfo)||void 0===t?void 0:t.params)&&(0,s.jsxs)(d._2,{onSelect:()=>em(e),children:[(0,s.jsx)(F.A,{className:"size-4"}),C("history.recreate")]}),(0,s.jsxs)(d._2,{variant:"destructive",onSelect:()=>ei(e.id),children:[(0,s.jsx)(T.A,{className:"size-4"}),C("history.deleteConfirm")]})]})]})})]},e.id)})})}),eA>1&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 pt-2",children:[(0,s.jsx)(i.$,{size:"sm",variant:"outline",onClick:()=>K(e=>Math.max(1,e-1)),disabled:_||1===W,children:(0,s.jsx)(I.A,{className:"size-4 rtl:-scale-x-100"})}),(0,s.jsx)("span",{className:"text-sm text-muted-foreground min-w-[60px] text-center",children:_?(0,s.jsx)(M.A,{className:"size-4 animate-spin inline"}):"".concat(W," / ").concat(eA)}),(0,s.jsx)(i.$,{size:"sm",variant:"outline",onClick:()=>K(e=>Math.min(eA,e+1)),disabled:_||W===eA,children:(0,s.jsx)(D.A,{className:"size-4 rtl:-scale-x-100"})})]})]}):(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,s.jsx)("div",{className:"w-16 h-16 bg-muted rounded-full flex items-center justify-center mb-4",children:(0,s.jsx)(eI,{className:"w-8 h-8 text-muted-foreground"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:eC?C("image.noImagesYet"):C("video.noVideosYet")}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground max-w-sm",children:eC?C("image.noImagesDescription"):C("video.noVideosDescription")})]})})]}),et&&(0,s.jsx)(x,{isOpen:!!et,onClose:()=>ea(null),imageSrc:et.src,imageAlt:et.alt,prompt:et.prompt,onDownload:()=>{let e=(0,N.l)({url:et.src},"image-".concat(Date.now(),".").concat((0,N.E)("image")));H.o.promise(e,{loading:"Downloading...",success:"Download started",error:"Download failed"}),e.catch(e=>{console.error("Download failed:",e)})}}),(0,s.jsx)(o.Lt,{open:null!==eo,onOpenChange:e=>{e||ei(null)},children:(0,s.jsxs)(o.EO,{children:[(0,s.jsxs)(o.wd,{children:[(0,s.jsx)(o.r7,{children:C("history.deleteTitle")}),(0,s.jsx)(o.$v,{children:C("history.deleteDescription")})]}),(0,s.jsxs)(o.ck,{children:[(0,s.jsx)(o.Zr,{children:C("history.deleteC
1ancel")}),(0,s.jsx)(o.Rx,{onClick:()=>{eo&&ez(eo),ei(null)},className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:C("history.deleteConfirm")})]})]})}),(0,s.jsx)(h.q,{isOpen:!!es,onClose:()=>er(null),creation:es,autoPlayVideo:!0,onDelete:async e=>{await ez(e.id)},onRecreate:e=>{er(null),em(e)}})]})});$.displayName="CreationHistory"},27455:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59017).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},30384:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59017).A)("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},38015:(e,t,a)=>{a.d(t,{Q:()=>l});var s=a(62573),r=a(62625);function l(e){let{mode:t}=e,a=(0,r.c3)("Generator.pageHeader");return(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:a("".concat(t,".title"))}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:a("".concat(t,".description"))})]})}},40630:(e,t,a)=>{a.d(t,{H:()=>o});var s=a(62573),r=a(97237);let l=(0,a(59017).A)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var n=a(62625);function o(e){let{kind:t,onPick:a,disabled:o}=e,i=(0,n.c3)("Generator.hero"),c=i.raw("video"===t?"hints":"hintsImage");return(0,s.jsxs)(r.$,{type:"button",variant:"ghost",size:"sm",className:"h-7 gap-1 px-2 text-xs text-muted-foreground",disabled:o||0===c.length,onClick:()=>{let e=c[Math.floor(Math.random()*c.length)];e&&a(e.prompt)},children:[(0,s.jsx)(l,{className:"size-3.5"}),i("inspireMe")]})}},46514:(e,t,a)=>{a.d(t,{$v:()=>h,EO:()=>u,Lt:()=>o,Rx:()=>f,Zr:()=>g,ck:()=>p,r7:()=>x,tv:()=>i,wd:()=>m});var s=a(62573);a(38425);var r=a(88513),l=a(14226),n=a(97237);function o(e){let{...t}=e;return(0,s.jsx)(r.bL,{"data-slot":"alert-dialog",...t})}function i(e){let{...t}=e;return(0,s.jsx)(r.l9,{"data-slot":"alert-dialog-trigger",...t})}function c(e){let{...t}=e;return(0,s.jsx)(r.ZL,{"data-slot":"alert-dialog-portal",...t})}function d(e){let{className:t,...a}=e;return(0,s.jsx)(r.hJ,{"data-slot":"alert-dialog-overlay",className:(0,l.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function u(e){let{className:t,...a}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(d,{}),(0,s.jsx)(r.UC,{"data-slot":"alert-dialog-content",className:(0,l.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...a})]})}function m(e){let{className:t,...a}=e;return(0,s.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,l.cn)("flex flex-col gap-2 text-center sm:text-left",t),...a})}function p(e){let{className:t,...a}=e;return(0,s.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,l.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function x(e){let{className:t,...a}=e;return(0,s.jsx)(r.hE,{"data-slot":"alert-dialog-title",className:(0,l.cn)("text-lg font-semibold",t),...a})}function h(e){let{className:t,...a}=e;return(0,s.jsx)(r.VY,{"data-slot":"alert-dialog-description",className:(0,l.cn)("text-muted-foreground text-sm",t),...a})}function f(e){let{className:t,...a}=e;return(0,s.jsx)(r.rc,{className:(0,l.cn)((0,n.r)(),t),...a})}function g(e){let{className:t,...a}=e;return(0,s.jsx)(r.ZD,{className:(0,l.cn)((0,n.r)({variant:"outline"}),t),...a})}},61929:(e,t,a)=>{a.d(t,{A:()=>s});
1let s=(0,a(59017).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},74572:(e,t,a)=>{a.d(t,{C:()=>m});var s=a(62573),r=a(27453),l=a(97237),n=a(70665),o=a(27082),i=a(46966),c=a(96611),d=a(62625),u=a(72471);function m(e){let{label:t,credits:a,creditsUnit:m,isGenerating:p,isProcessing:x,onGenerate:h,callbackUrl:f,validationError:g}=e,v=(0,d.c3)("Generator"),{user:b}=(0,n.i)();return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,s.jsx)(o.A,{className:"size-4 text-yellow-600 dark:text-yellow-500"}),(0,s.jsxs)("span",{children:[m,":"," ",(0,s.jsx)("span",{className:"font-semibold tabular-nums text-foreground",children:a})]})]}),b?(0,s.jsx)(l.$,{onClick:()=>{if(g){u.o.error(g);return}h()},disabled:p||x,className:"w-full h-12 text-base font-semibold",size:"lg",children:p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{className:"size-5 me-2 animate-spin"}),v("common.generating")]}):x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{className:"size-5 me-2 animate-spin"}),v("common.processing")]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.A,{className:"size-5 me-2"}),t]})}):(0,s.jsx)(r.n,{mode:"modal",asChild:!0,callbackUrl:f,children:(0,s.jsxs)(l.$,{className:"w-full h-12 text-base font-semibold",size:"lg",children:[(0,s.jsx)(c.A,{className:"size-5 me-2"}),t]})})]})}},75157:(e,t,a)=>{a.d(t,{B:()=>o});var s=a(62573),r=a(13465),l=a(62625),n=a(53180);function o(e){let{models:t,value:a,onChange:o,disabled:i}=e,c=(0,l.c3)("Generator");return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(r.J,{htmlFor:"model-select",className:"text-sm font-medium",children:c("common.model")}),(0,s.jsx)(n.Y,{id:"model-select",models:t,value:a,onChange:e=>o(e.id),disabled:i})]})}},83421:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59017).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},86858:(e,t,a)=>{a.d(t,{y:()=>j});var s=a(62573),r=a(97237),l=a(86861),n=a(70665),o=a(14226),i=a(25004),c=a(18237),d=a(70300),u=a(46966),m=a(27455),p=a(97436),x=a(30384),h=a(94897),f=a(62625),g=a(34806),v=a(38425),b=a(72471);function j(e){let{value:t=[],onChange:a,className:j,disabled:y,maxImages:w=5,compact:N,maxSizeMb:k=100,accept:z="image/*",onPendingChange:A}=e,C=1024*Math.min(k,100)*1024,I="image/*"===z?null:z.split(","),[D,E]=(0,v.useState)(!1),[R,L]=(0,v.useState)([]),[S,M]=(0,v.useState)(null),U=(0,v.useRef)(t);(0,v.useEffect)(()=>{U.current=t},[t]);let{user:O,isPending:F}=(0,n.i)(),{openLoginModal:T}=(0,c.r)(),P=(0,f.c3)("Components.upload");(0,v.useEffect)(()=>{null==A||A(R.filter(e=>"completed"!==e.status).map(e=>e.preview))},[R,A]);let V=(0,v.useCallback)(()=>!F&&!O&&(T(window.location.pathname+window.location.search),!0),[F,O,T]),H=(0,v.useCallback)(async e=>{if(V())return;let s=e.filter(e=>e.type.startsWith("image/")&&(!I||I.includes(e.type)));s.length<e.length&&b.o.error(P("someSkipped"));let r=Math.max(0,w-(t.length+R.length)),l=s.filter(e=>e.size>C);if(l.length>0){let e=l.map(e=>e.name).join(", ");b.o.error(P("filesTooLarge",{names:e,max:Math.min(k,100)}));return}if(s.length>r){b.o.error(P("maxImages",{max:w}));return}if(0===s.length){s.length>r&&b.o.error(P("maxImages",{max:w}));return}let n=s.map(e=>({id:Math.random().toString(36).substring(7),file:e,progress:0,status:"uploading",preview:URL.createObjectURL(e)}));for(let e of(L(e=>[...e,...n]),n))try{let t=await (0,i.Q)(e.file,"uploads/images");L(a=>a.map(a=>a.id===e.id?{...a,status:"completed",url:t.url,progress:100}:a)),setTimeout(()=>{let s=[...U.current,t.url];U.current=s,a(s),L(t=>t.filter(t=>t.id!==e.id)),URL.revokeObjectURL(e.preview)},800)}catch(t){console.error("Upload failed:",t),L(t=>t.map(t=>t.id===e.id?{...t,status:"error",progress:0}:t)),b.o.error(P("uploadFailed",{name:e.file.name})),setTimeout(()=>{L(t=>t.filter(t=>t.id!==e.id)),URL.revokeObjectURL(e.preview)},3e3)}},[a,t.length,w,R.length,V]),G=(0,v.useCallback)(e=>{e.preventDefault(),E(!1),!y&&!(t.length+R.length>=w)&&H(Array.from(e.dataTransfer.files))},[y,H,t.length,R.length,w]),Y=(0,v.useCallback)(e=>{e.preventDefault(),!y&&t.length+R.length<w&&E(!0)},[y,t.length,R.length,w]),Z=(0,v.useCallback)(e=>{e.preventDefault(),E(!1)},[]),$=(0,v.useCallback)(e=>{let t=Array.from(e.target.files||[]);t.length>0&&H(t)},[H]),q=(0,v.useCallback)(e=>{let s=[...t];s.splice(e,1),a(s)},[a,t]),B=t.length+R.length<w,Q=t.length+R.length;return(0,s.jsxs)("div",{className:(0,o.cn)("space-y-4",j),children:[Q>0&&(0,s.jsxs)("div",{className:(0,o.cn)(N?"flex flex-wrap gap-2":"grid grid-cols-2 sm:grid-cols-3 gap-4"),children:[t.map((e,t)=>(0,s.jsxs)("div",{className:"relative group",children:[N?(0,s.jsxs)("button",{type:"button",onClick:()=>M(e),className:"relative block size-20 cursor-zoom-in overflow-hidden rounded-lg border border-border/50 bg-muted","aria-label":"Preview image ".concat(t+1),children:[(0,s.jsx)(g.default,{src:e,alt:"".concat(P("uploadedImage")," ").concat(t+1),fill:!0,sizes:"80px",className:"object-cover"}),(0,s.jsx)("span",{className:"absolute bottom-1 start-1 rounded bg-black/70 px-1.5 py-0.5 text-[10px] font-semibold leading-none text-white tabular-nums",children:t+1})]}):(0,s.jsx)("div",{className:"relative aspect-square overflow-hidden rounded-xl border",children:(0,s.jsx)(g.default,{src:e,alt:"".concat(P("uploadedImage")," ").concat(t+1),fill:!0,className:"object-cover"})}),(0,s.jsx)(r.$,{type:"button",variant:"destructive",size:"icon",className:(0,o.cn)("absolute opacity-0 group-hover:opacity-100 transition-opacity",N?"-top-1.5 -end-1.5 size-5 rounded-full":"-top-2 -end-2 size-6"),onClick:()=>q(t),disabled:y,"aria-label":P("removeImage"),children:(0,s.jsx)(d.A,{className:"size-3"})})]},"completed-".concat(t))),R.map(e=>(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:(0,o.cn)("relative overflow-hidden border",N?"size-20 rounded-lg border-border/50":"aspect-square rounded-xl"),children:[(0,s.jsx)(g.default,{src:e.preview,alt:"Uploading ".concat(e.file.name),fill:!0,className:(0,o.cn)("object-cover transition-all duration-300","uploading"===e.status&&"opacity-60","completed"===e.status&&"opacity-100","error"===e.status&&"opacity-40")}),(0,s.jsxs)("div",{className:(0,o.cn)("absolute inset-0 flex items-center justify-center transition-all duration-300","uploading"===e.status&&"bg-black/20","completed"===e.status&&"bg-black/10","error"===e.status&&"bg-black/30"),children:["uploading"===e.status&&(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-1",children:[(0,s.jsx)(u.A,{className:(0,o.cn)("text-white animate-spin",N?"size-5":"size-6")}),!N&&(0,s.jsx)("span",{className:"text-xs text-white font-medium",children:P("uploading")})]}),"completed"===e.status&&(0,s.jsx)("div",{className:"w-8 h-8 bg-green-500 rounded-full flex items-center justify-center animate-pulse",children:(0,s.jsx)("svg",{className:"w-5 h-5 text-white",f
1ill:"currentColor",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}),"error"===e.status&&(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-1",children:[(0,s.jsx)(m.A,{className:(0,o.cn)("text-red-500",N?"size-5":"size-6")}),!N&&(0,s.jsx)("span",{className:"text-xs text-red-500 font-medium",children:P("failed")})]})]})]}),"error"===e.status&&(0,s.jsx)(r.$,{type:"button",variant:"destructive",size:"icon",className:"absolute -top-2 -end-2 size-6",onClick:()=>{L(t=>t.filter(t=>t.id!==e.id)),URL.revokeObjectURL(e.preview)},"aria-label":P("removeImage"),children:(0,s.jsx)(d.A,{className:"size-3"})})]},"uploading-".concat(e.id))),B&&(0,s.jsxs)("div",{className:(0,o.cn)("relative cursor-pointer transition-colors duration-200","border-2 border-dashed",N?"size-20 rounded-lg flex-col gap-0.5":"aspect-square rounded-xl","flex items-center justify-center","hover:bg-muted/50","border-muted-foreground/25",y&&"cursor-not-allowed opacity-50"),onClick:()=>{var e;!y&&(V()||null===(e=document.getElementById("multi-image-upload-input"))||void 0===e||e.click())},children:[(0,s.jsx)(p.A,{className:(0,o.cn)("text-muted-foreground",N?"size-5":"size-8")}),N&&(0,s.jsxs)("span",{className:"text-[10px] leading-none text-muted-foreground tabular-nums",children:[Q,"/",w]})]})]}),0===Q&&(0,s.jsx)("div",{className:(0,o.cn)("relative cursor-pointer transition-colors duration-200","border-2 border-dashed rounded-xl",N?"p-5":"p-8","hover:bg-muted/50",D?"border-primary bg-primary/5":"border-muted-foreground/25",y&&"cursor-not-allowed opacity-50"),onDrop:G,onDragOver:Y,onDragLeave:Z,onClick:()=>{var e;!y&&(V()||null===(e=document.getElementById("multi-image-upload-input"))||void 0===e||e.click())},children:N?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 text-center text-muted-foreground",children:[(0,s.jsx)(x.A,{className:"size-7"}),(0,s.jsx)("p",{className:"text-sm",children:D?P("dropHere"):P("uploadShort")})]}):(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4 text-center",children:[(0,s.jsx)("div",{className:"p-4 rounded-full bg-muted",children:(0,s.jsx)(h.A,{className:"size-8 text-muted-foreground"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-lg font-semibold",children:D?P("dropImages"):P("uploadImages")}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:P("dragHint")}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:P("supportsMulti",{count:w,max:Math.min(k,100)})})]})]})}),(0,s.jsx)(l.lG,{open:!!S,onOpenChange:e=>!e&&M(null),children:(0,s.jsxs)(l.Cf,{className:"w-auto max-w-[90vw] border-0 bg-black/95 p-2 sm:max-w-[80vw]",children:[(0,s.jsx)(l.L3,{className:"sr-only",children:P("preview")}),S&&(0,s.jsx)("img",{src:S,alt:"",className:"max-h-[80vh] max-w-full rounded-md object-contain"})]})}),(0,s.jsx)("input",{id:"multi-image-upload-input",type:"file",accept:z,multiple:!0,className:"hidden",onChange:$,disabled:y||!B}),Q>0&&!N&&(0,s.jsxs)("div",{className:"text-sm text-muted-foreground text-center",children:[P("counter",{count:t.length,max:w}),R.length>0&&(0,s.jsx)("span",{className:"ms-2",children:P("uploadingCount",{count:R.length})})]})]})}},88513:(e,t,a)=>{a.d(t,{UC:()=>M,VY:()=>T,ZD:()=>O,ZL:()=>L,bL:()=>E,hE:()=>F,hJ:()=>S,l9:()=>R,rc:()=>U});var s=a(38425),r=a(41811),l=a(69935),n=a(31147),o=a(89437),i=a(24762),c=a(62573),d="AlertDialog",[u,m]=(0,r.A)(d,[n.Hs]),p=(0,n.Hs)(),x=e=>{let{__scopeAlertDialog:t,...a}=e,s=p(t);return(0,c.jsx)(n.bL,{...s,...a,modal:!0})};x.displayName=d;var h=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,r=p(a);return(0,c.jsx)(n.l9,{...r,...s,ref:t})});h.displayName="AlertDialogTrigger";var f=e=>{let{__scopeAlertDialog:t,...a}=e,s=p(t);return(0,c.jsx)(n.ZL,{...s,...a})};f.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,r=p(a);return(0,c.jsx)(n.hJ,{...r,...s,ref:t})});g.displayName="AlertDialogOverlay";var v="AlertDialogContent",[b,j]=u(v),y=s.forwardRef((e,t)=>
1{let{__scopeAlertDialog:a,children:r,...d}=e,u=p(a),m=s.useRef(null),x=(0,l.s)(t,m),h=s.useRef(null);return(0,c.jsx)(n.G$,{contentName:v,titleName:w,docsSlug:"alert-dialog",children:(0,c.jsx)(b,{scope:a,cancelRef:h,children:(0,c.jsxs)(n.UC,{role:"alertdialog",...u,...d,ref:x,onOpenAutoFocus:(0,o.m)(d.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=h.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,c.jsx)(i.xV,{children:r}),(0,c.jsx)(D,{contentRef:m})]})})})});y.displayName=v;var w="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,r=p(a);return(0,c.jsx)(n.hE,{...r,...s,ref:t})});N.displayName=w;var k="AlertDialogDescription",z=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,r=p(a);return(0,c.jsx)(n.VY,{...r,...s,ref:t})});z.displayName=k;var A=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,r=p(a);return(0,c.jsx)(n.bm,{...r,...s,ref:t})});A.displayName="AlertDialogAction";var C="AlertDialogCancel",I=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,{cancelRef:r}=j(C,a),o=p(a),i=(0,l.s)(t,r);return(0,c.jsx)(n.bm,{...o,...s,ref:i})});I.displayName=C;var D=e=>{let{contentRef:t}=e,a="`".concat(v,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(v,"` by passing a `").concat(k,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(v,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},E=x,R=h,L=f,S=g,M=y,U=A,O=I,F=N,T=z},88903:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59017).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},94897:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(59017).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])}}]);
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.