1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f222284f-f5b6-4aa7-ab23-fab0bb4ef938",e._sentryDebugIdIdentifier="sentry-dbid-f222284f-f5b6-4aa7-ab23-fab0bb4ef938")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{210:function(e,t,o){o.r(t);var n=o(57437),r=o(15388),s=o(2265),i=o(23096),a=o(38968),l=o(5078),d=o(18604),u=o(62990),c=o(14504),p=o(40036),m=o(23787),x=o(37164),f=o(6884),v=o(95338),h=o(54741),g=o(13380),b=o(71907),y=o(96278),j=o(35451),w=o(19023),N=o(34602),C=o(86346),k=o(37440),Z=o(7750),V=o(54431),L=o(91217),E=o(90501),S=o(36963),I=o(64665),F=o(92354),M=o(13289),A=o(35318),R=o(42467),D=o(34955);let H=[{label:"Text to Video",value:"text-to-video"},{label:"Image to Video",value:"image-to-video"},{label:"Reference to Video",value:"reference-to-video"}],P=[{label:"Auto",value:"auto"},{label:"21:9 (Cinematic)",value:"21:9"},{label:"16:9 (Widescreen)",value:"16:9"},{label:"4:3 (Standard)",value:"4:3"},{label:"1:1 (Square)",value:"1:1"},{label:"3:4 (Portrait)",value:"3:4"},{label:"9:16 (Vertical)",value:"9:16"}],U=[{label:"480p (Faster)",value:"480p"},{label:"720p (Balanced)",value:"720p"},{label:"1080p (Best Quality)",value:"1080p"}],B=[{label:"Auto (recommended)",value:"auto"},...Array.from({length:27},(e,t)=>{let o=t+4;return{label:"".concat(o," seconds"),value:String(o)}})];function z(e){var t,o,z,T,_,O,q,W,K,G,Q,Y,J,X,$,ee,et,eo,en,er,es,ei,ea,el,ed,eu,ec,ep,em,ex,ef,ev,eh,eg,eb;let{id:ey,data:ej}=e,ew=(0,g.b)(),eN=(0,D.getMediaUrl)(null===(t=ej.outputs)||void 0===t?void 0:t.videoUrl),[eC,ek]=(0,s.useState)((null===(o=ej.inputs)||void 0===o?void 0:o.mode)||"text-to-video"),[eZ,eV]=(0,s.useState)((null===(z=ej.inputs)||void 0===z?void 0:z.prompt)||""),[eL,eE]=(0,s.useState)(""),[eS,eI]=(0,s.useState)((null===(T=ej.inputs)||void 0===T?void 0:T.aspectRatio)||"16:9"),[eF,eM]=(0,s.useState)(["480p","720p","1080p"].includes(null===(_=ej.inputs)||void 0===_?void 0:_.resolution)?ej.inputs.resolution:"720p"),[eA,eR]=(0,s.useState)((null===(O=ej.inputs)||void 0===O?void 0:O.duration)||"auto"),[eD,eH]=(0,s.use
1State)(null===(eg=null===(q=ej.inputs)||void 0===q?void 0:q.generateAudio)||void 0===eg||eg),[eP,eU]=(0,s.useState)(null),[eB,ez]=(0,s.useState)((null===(W=ej.inputs)||void 0===W?void 0:W.endImage)||null),[eT,e_]=(0,s.useState)([]),[eO,eq]=(0,s.useState)([]),[eW,eK]=(0,s.useState)([]),{getEdges:eG}=(0,i._K)(),eQ=(0,l.v)(),[eY,eJ]=(0,s.useState)((null===(K=ej.outputs)||void 0===K?void 0:K.capturedFrame)||null),[eX,e$]=(0,s.useState)(!1),e0=(0,s.useRef)(null),e1=(0,h.IZ)(e=>e.updateNodeData),e2=(0,h.IZ)(e=>e.currentWorkflowId),e4=(0,h.IZ)(e=>e.toggleNodeCollapse),e3=null!==(eb=ej.isCollapsed)&&void 0!==eb&&eb,e5="complete"===ej.status&&!!eN,e7=(0,s.useCallback)(()=>e4(ey),[e4,ey]),{user:e6}=(0,b.a)(),e8=(0,h.IZ)(e=>e.startPolling),e9=(0,h.IZ)(e=>e.stopPolling),te=(0,h.IZ)(e=>e.checkAndRecoverPolling);(0,s.useEffect)(()=>{var e,t,o,n,r,s,i,a,l;let d=(null===(t=ej.inputValues)||void 0===t?void 0:null===(e=t.prompt)||void 0===e?void 0:e.value)||"";if(d!==eL&&eE(d),"image-to-video"===eC){let e=null===(n=ej.inputValues)||void 0===n?void 0:null===(o=n.image)||void 0===o?void 0:o.value;e?eU(e):(null===(r=ej.inputValues)||void 0===r?void 0:r.image)||eU((null===(l=ej.inputs)||void 0===l?void 0:l.image)||null);let t=null===(i=ej.inputValues)||void 0===i?void 0:null===(s=i.endFrame)||void 0===s?void 0:s.value;t?ez(t):(null===(a=ej.inputValues)||void 0===a?void 0:a.endFrame)||ez(null)}if("reference-to-video"===eC){let e=eG(),t=e.filter(e=>e.target===ey&&"referenceImages"===e.targetHandle),o=[];t.forEach(e=>{if(o.length<30){let i=eQ.get(e.source);if(i&&e.sourceHandle){var t,n,r,s;let a=(null===(n=i.data.outputValues)||void 0===n?void 0:null===(t=n[e.sourceHandle])||void 0===t?void 0:t.value)||(null===(r=i.data.outputs)||void 0===r?void 0:r.imageUrl)||(null===(s=i.data.outputs)||void 0===s?void 0:s.image);a&&"string"==typeof a?o.push(a):Array.isArray(a)&&a.filter(e=>"string"==typeof e).forEach(e=>{o.length<30&&o.push(e)})}}}),(o.length!==eT.length||o.some((e,t)=>e!==eT[t]))&&e_(o);let n=e.filter(e=>e.target===ey&&"referenceVideos"===e.targetHandle),r=[];n.forEach(e=>{if(r.length<10){let i=eQ.get(e.source);if(i&&e.sourceHandle){var t,o,n,s;let a=(null===(o=i.data.outputValues)||void 0===o?void 0:null===(t=o[e.sourceHandle])||void 0===t?void 0:t.value)||(null===(n=i.data.outputs)||void 0===n?void 0:n.videoUrl)||(null===(s=i.data.outputs)||void 0===s?void 0:s.video);a&&"string"==typeof a&&r.push(a)}}}),(r.length!==eO.length||r.some((e,t)=>e!==eO[t]))&&eq(r);let s=e.filter(e=>e.target===ey&&"referenceAudio"===e.targetHandle),i=[];s.forEach(e=>{if(i.length<10){let s=eQ.get(e.source);if(s&&e.sourceHandle){var t,o,n,r;let a=(null===(o=s.data.outputValues)||void 0===o?void 0:null===(t=o[e.sourceHandle])||void 0===t?void 0:t.value)||(null===(n=s.data.outputs)||void 0===n?void 0:n.audioUrl)||(null===(r=s.data.outputs)||void 0===r?void 0:r.audio);a&&"string"==typeof a&&i.push(a)}}}),(i.length!==eW.length||i.some((e,t)=>e!==eW[t]))&&eK(i)}},[ej.inputValues,null===(G=ej.inputs)||void 0===G?void 0:G.image,eC,eG,eQ,ey,eT,eO,eW,eL]),(0,s.useEffect)(()=>{var e,t;(null===(e=ej.inputs)||void 0===e?void 0:e.prompt)!==void 0&&(null===(t=ej.inputs)||void 0===t?void 0:t.prompt)!==eZ&&eV(ej.inputs.prompt)},[null===(Q=ej.inputs)||void 0===Q?void 0:Q.prompt]),(0,s.useEffect)(()=>{var e;(null===(e=ej.outputs)||void 0===e?void 0:e.capturedFrame)&&eJ(ej.outputs.capturedFrame)},[null===(Y=ej.outputs)||void 0===Y?void 0:Y.capturedFrame]);let tt=(0,s.useMemo)(()=>eL?eZ?"".concat(eL,"\n\n").concat(eZ):eL:eZ,[eL,eZ]),to=(0,s.useCallback)(()=>{switch(eC){case"text-to-video":if(!tt.trim())return e1(ey,{status:"error",error:"Please provide a prompt for text-to-video mode"}),!1;return!0;case"image-to-video":if(!tt.trim()&&!eP)return e1(ey,{status:"error",error:"Please provide a prompt or connect an image"}),!1;return!0;case"reference-to-video":if(!tt.trim())return e1(ey,{status:"error",error:"Please provide a prompt for reference-to-video mode"}),!1;if(0===eT.length&&0===eO.length)return e1(ey,{status:"error",error:"Please connect at least one reference image or video"}),!1;if(eW.length>0&&0===eT.length&&0===eO.length)return e1(ey,{status:"error",error:"Audio references require at least one reference image or video"}),!1;return!0;default:return!1}},[eC,tt,eP,eT,eO,eW,ey,e1]),tn=(0,s.useCallback)(async()=>
1{if(to()){e1(ey,{status:"processing",inputs:{prompt:eZ,mode:eC,aspectRatio:eS,resolution:eF,duration:eA,image:eP,endImage:eB,referenceImages:eT,referenceVideos:eO,referenceAudio:eW,generateAudio:eD}});try{let t={mode:eC,prompt:tt,aspectRatio:eS,resolution:eF,duration:eA,generateAudio:eD,workflowId:e2,nodeId:ey,userId:null==e6?void 0:e6.id};"image-to-video"===eC?(t.imageUrl=eP,eB&&(t.endImageUrl=eB)):"reference-to-video"===eC&&(t.referenceImageUrls=eT,eO.length>0&&(t.referenceVideoUrls=eO),eW.length>0&&(t.referenceAudioUrls=eW));let o=await ew("/api/generate/seedance-2",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!o.ok){var e;let t=await o.json();throw Error(t.error||(null===(e=t.details)||void 0===e?void 0:e.msg)||"Generation failed")}let n=await o.json();if(!n.requestId||!n.endpoint)throw Error("Invalid response from server");h.IZ.getState().updateQueueStatus(ey,{status:"IN_QUEUE",startTime:Date.now()}),e8(ey,n.requestId,n.endpoint,3e3,null==e6?void 0:e6.id)}catch(e){e9(ey),e1(ey,{status:"error",error:(0,R.nU)(e)})}}},[ey,e1,to,tt,eP,eB,eT,eO,eW,eZ,eC,eS,eF,eA,eD,e2,e8,e9,ew,null==e6?void 0:e6.id]);(0,s.useEffect)(()=>{te(ey)},[ey,te]),(0,s.useEffect)(()=>{let e=e=>{e.detail.nodeId===ey&&tn()};return window.addEventListener("generate-node",e),()=>window.removeEventListener("generate-node",e)},[ey,tn]);let tr=async e=>{if(e0.current&&eN){e$(!0);try{let t=await (0,A.ON)(e0.current,e,e2||"default",ey);eJ(t),e1(ey,{outputs:{...ej.outputs,capturedFrame:t},outputValues:{...ej.outputValues,capturedFrame:{portId:"capturedFrame",value:t,type:"image"}}})}catch(e){r.Z.error("Failed to capture frame:",e)}finally{e$(!1)}}},ts=async()=>{if(eN)try{if(eN.startsWith("data:")||eN.startsWith("blob:")){let e=document.createElement("a");e.href=eN,e.download="seedance2-video-".concat(Date.now(),".mp4"),document.body.appendChild(e),e.click(),document.body.removeChild(e)}else{let e=await fetch(eN),t=await e.blob(),o=URL.createObjectURL(t),n=document.createElement("a");n.href=o,n.download="seedance2-video-".concat(Date.now(),".mp4"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>URL.revokeObjectURL(o),100)}}catch(e){r.Z.error("Download failed:",e),window.open(eN,"_blank")}},ti=(0,s.useMemo)(()=>{switch(eC){case"text-to-video":return"Creating video with Seedance 2.5...";case"image-to-video":return"Animating image with Seedance 2.5...";case"reference-to-video":return"Creating video from references with Seedance 2.5..."}},[eC]),ta=(0,s.useMemo)(()=>{if(eL)return"Add additional details (optional)...";switch(eC){case"text-to-video":return"Describe the video with camera movements in [brackets]...";case"image-to-video":return eP?"Describe motion for this image...":"Connect an image to begin...";case"reference-to-video":return eT.length>0||eO.length>0?"Describe using @Image1, @Video1, @Audio1, etc...":"Connect reference images or videos to begin..."}},[eC,eL,eP,eT,eO]);return(0,n.jsx)(w.Z,{status:ej.status||"idle",variant:"border",hideBorderAnimation:!0,children:(0,n.jsxs)("div",{className:(0,k.cn)("node-container w-[320px] max-w-[400px]",e3&&"node-collapsed"),"data-node-id":ey,children:[(0,n.jsx)(N.Z,{label:ej.label,onLabelChange:e=>e1(ey,{label:e}),icon:v.Z,canCollapse:e5,isCollapsed:e3,onToggleCollapse:e7}),e3&&(0,n.jsx)(C.Z,{nodeType:"seedance-2",outputs:ej.outputs||{},outputValues:ej.outputValues}),!e3&&(0,n.jsxs)("div",{className:"node-content",children:[(0,n.jsx)(I.Z,{content:eL}),(0,n.jsx)(F.Z,{value:eZ,onChange:e=>{eV(e),e1(ey,{inputs:{...ej.inputs,prompt:e,mode:eC,aspectRatio:eS,resolution:eF,duration:eA,generateAudio:eD}})},placeholder:ta,className:"node-input nodrag",rows:5,label:"Prompt"}),"image-to-video"===eC&&(eP||eB)&&(0,n.jsx)("div",{className:"mb-2 space-y-2",children:(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[eP&&(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,n.jsx)(d.Z,{className:"w-3 h-3"}),(0,n.jsx)("span",{children:"Start Frame"})]}),(0,n.jsx)("div",{className:"relative w-full h-32 rounded-md overflow-hidden border border-border",style:{backgroundColor:"rgb(20, 20, 26)"},children:(0,n.jsx)("img",{src:eP,alt:"Start Frame",className:"w-full h-full object-contain"})})]}),eB&&(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,n.jsx)(d.Z,{className:"w-3 h-3"}),(0,n.jsx)("span",{children:"End Frame"})]}),(0,n.jsx)("div",{className:"relative w-full h-32 rounded-md overflow-hidden border border-border",style:{backgroundColor:"rgb(20, 20, 26)"},children:(0,n.jsx)("img",{src:eB,alt:"End Frame",className:"w-full h-full object-contain"})})]})]})}),"reference-to-video"===eC&&eT.length>0&&(0,n.jsxs)("div",{className:"space-y-2 mb-2",children:[(0,n.jsxs)("label",{className:"text-xs text-muted-foreground",children:["Reference Images (",eT.length,"/30)"]}),(0,n.jsx)("div",{className:"space-y-1",children:eT.map((e,t)=>{let o=(0,D.getMediaUrl)(e);return o?(0,n.jsx)(M.Z,{imageUrl:o,tag:"@Image".concat(t+1),isConnected:!0,showEditButton:!1,showRemoveButton:!1,thumbnailSize:"sm"},t):null})}
1),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/70 italic",children:"Use @Image1, @Image2, etc. in your prompt to reference specific images"})]}),"reference-to-video"===eC&&eO.length>0&&(0,n.jsxs)("div",{className:"space-y-2 mb-2",children:[(0,n.jsxs)("label",{className:"text-xs text-muted-foreground",children:["Reference Videos (",eO.length,"/10)"]}),(0,n.jsx)("div",{className:"space-y-1",children:eO.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-3 p-1.5",style:{borderRadius:"12px",background:"#2A2B36",boxShadow:"0 8px 64px 0 rgba(0, 0, 0, 0.56)"},children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-md bg-background/50 flex items-center justify-center flex-shrink-0",children:(0,n.jsx)(u.Z,{className:"w-5 h-5 text-muted-foreground"})}),(0,n.jsxs)("span",{className:"text-sm font-mono flex-1",children:["@Video",t+1]})]},t))}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/70 italic",children:"Use @Video1, @Video2, etc. in your prompt to reference specific videos"})]}),"reference-to-video"===eC&&eW.length>0&&(0,n.jsxs)("div",{className:"space-y-2 mb-2",children:[(0,n.jsxs)("label",{className:"text-xs text-muted-foreground",children:["Reference Audio (",eW.length,"/10)"]}),(0,n.jsx)("div",{className:"space-y-1",children:eW.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-3 p-1.5",style:{borderRadius:"12px",background:"#2A2B36",boxShadow:"0 8px 64px 0 rgba(0, 0, 0, 0.56)"},children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-md bg-background/50 flex items-center justify-center flex-shrink-0",children:(0,n.jsx)(c.Z,{className:"w-5 h-5 text-muted-foreground"})}),(0,n.jsxs)("span",{className:"text-sm font-mono flex-1",children:["@Audio",t+1]})]},t))}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/70 italic",children:"Use @Audio1, @Audio2, etc. in your prompt to reference specific audio"})]}),"reference-to-video"===eC&&0===eT.length&&0===eO.length&&(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsxs)("p",{className:"text-xs text-muted-foreground/70 italic flex items-center gap-1",children:[(0,n.jsx)(p.Z,{className:"w-3 h-3"}),"Connect image or video nodes to use as references"]})}),(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsx)(S.Z,{label:"Mode",value:eC,options:H,onChange:e=>{"image-to-video"!==e&&(eU(null),ez(null)),"reference-to-video"!==e&&(e_([]),eq([]),eK([])),("text-to-video"===e||"reference-to-video"===e)&&eI("16:9"),ek(e),e1(ey,{inputs:{...ej.inputs,mode:e}})}})}),(0,n.jsxs)("div",{className:"space-y-2 mb-2",children:["image-to-video"!==eC&&(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsx)(S.Z,{label:"Aspect",value:eS,options:P,onChange:e=>{eI(e),e1(ey,{inputs:{...ej.inputs,aspectRatio:e}})}})}),(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsx)(S.Z,{label:"Quality",value:eF,options:U,onChange:e=>{eM(e),e1(ey,{inputs:{...ej.inputs,resolution:e}})}})}),(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsx)(S.Z,{label:"Duration",value:eA,options:B,onChange:e=>{eR(e),e1(ey,{inputs:{...ej.inputs,duration:e}})}})})]}),(0,n.jsx)(E.Z,{id:"generate-audio-".concat(ey),checked:eD,onChange:e=>{eH(e),e1(ey,{inputs:{...ej.inputs,generateAudio:e}})},label:"Generate audio"}),(0,n.jsx)(Z.Z,{onClick:tn,disabled:"processing"===ej.status,isProcessing:"processing"===ej.status,label:"Generate Video",className:"w-full",isVideoNode:!0}),(0,n.jsx)(V.Z,{isVisible:"processing"===ej.status,size:200,message:ti,className:"mt-4 w-full"}),eN&&(0,n.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("p",{className:"text-xs text-muted-foreground font-medium",children:"Generated Video:"}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("button",{onClick:()=>window.open(eN,"_blank"),className:"p-1 text-muted-foreground hover:text-foreground transition-colors",title:"Open in new tab",children:(0,n.jsx)(m.Z,{className:"w-4 h-4"})}),(0,n.jsx)("button",{onClick:ts,className:"p-1 text-muted-foreground hover:text-foreground transition-colors",title:"Download",children:(0,n.jsx)(x.Z,{className:"w-4 h-4"})})]})]}),(0,n.jsx)("div",{className:"node-output-media rounded-xl overflow-hidden",children:(0,n.jsx)("video",{ref:e0,src:eN,controls:!0,crossOrigin:"anonymous",className:"w-full rounded-md",style:{maxHeight:"200px"}})}),(0,n.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:(0,n.jsxs)("span",{children:[eF," ⢠","image-to-vi
1deo"===eC?"Original Aspect":eS," ⢠","auto"===eA?"Auto length":"".concat(eA,"s"),eD?" ⢠Audio":""]})}),(null===(J=ej.outputs)||void 0===J?void 0:J.seed)&&(0,n.jsxs)("button",{onClick:()=>{navigator.clipboard.writeText(String(ej.outputs.seed))},className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors cursor-pointer",title:"Click to copy seed",children:[(0,n.jsxs)("span",{children:["Seed: ",ej.outputs.seed]}),(0,n.jsx)(f.Z,{className:"w-3 h-3"})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(L.Z,{onClick:()=>tr(!1),disabled:eX,className:"flex-1",children:"Current Frame"}),(0,n.jsx)(L.Z,{onClick:()=>tr(!0),disabled:eX,className:"flex-1",children:"Last Frame"})]}),eY&&(0,n.jsxs)("div",{className:"mt-2",children:[(0,n.jsx)("p",{className:"text-xs text-muted-foreground mb-1",children:"Captured Frame:"}),(0,n.jsx)("div",{className:"relative w-full h-32 bg-muted rounded-md overflow-hidden",children:(0,n.jsx)("img",{src:eY,alt:"Captured frame",className:"w-full h-full object-contain"})})]})]}),(0,n.jsx)(j.Z,{error:ej.error,onRetry:tn,onDismiss:()=>e1(ey,{error:void 0})})]}),"text-to-video"===eC&&(0,n.jsx)(n.Fragment,{children:(null===(X=ej.ports)||void 0===X?void 0:X.inputs.find(e=>"prompt"===e.id))&&(!e3||(null===($=ej.inputValues)||void 0===$?void 0:$.prompt))&&(0,n.jsx)(y.Z,{port:ej.ports.inputs.find(e=>"prompt"===e.id),type:"target",position:a.Ly.Left,isConnected:!!(null===(ee=ej.inputValues)||void 0===ee?void 0:ee.prompt),style:{top:0,position:"absolute"}},"input-prompt")}),"image-to-video"===eC&&(0,n.jsxs)(n.Fragment,{children:[(null===(et=ej.ports)||void 0===et?void 0:et.inputs.find(e=>"prompt"===e.id))&&(!e3||(null===(eo=ej.inputValues)||void 0===eo?void 0:eo.prompt))&&(0,n.jsx)(y.Z,{port:ej.ports.inputs.find(e=>"prompt"===e.id),type:"target",position:a.Ly.Left,isConnected:!!(null===(en=ej.inputValues)||void 0===en?void 0:en.prompt),style:{top:-30,position:"absolute"}},"input-prompt"),(null===(er=ej.ports)||void 0===er?void 0:er.inputs.find(e=>"image"===e.id))&&(!e3||(null===(es=ej.inputValues)||void 0===es?void 0:es.image))&&(0,n.jsx)(y.Z,{port:ej.ports.inputs.find(e=>"image"===e.id),type:"target",position:a.Ly.Left,isConnected:!!(null===(ei=ej.inputValues)||void 0===ei?void 0:ei.image),style:{top:-15,position:"absolute"}},"input-image"),(null===(ea=ej.ports)||void 0===ea?void 0:ea.inputs.find(e=>"endFrame"===e.id))&&(!e3||(null===(el=ej.inputValues)||void 0===el?void 0:el.endFrame))&&(0,n.jsx)(y.Z,{port:ej.ports.inputs.find(e=>"endFrame"===e.id),type:"target",position:a.Ly.Left,isConnected:!!(null===(ed=ej.inputValues)||void 0===ed?void 0:ed.endFrame),style:{top:"85%",position:"absolute"}},"input-endFrame")]}),"reference-to-video"===eC&&(0,n.jsxs)(n.Fragment,{children:[(null===(eu=ej.ports)||void 0===eu?void 0:eu.inputs.find(e=>"prompt"===e.id))&&(!e3||(null===(ec=ej.inputValues)||void 0===ec?void 0:ec.prompt))&&(0,n.jsx)(y.Z,{port:ej.ports.inputs.find(e=>"prompt"===e.id),type:"target",position:a.Ly.Left,isConnected:!!(null===(ep=ej.inputValues)||void 0===ep?void 0:ep.prompt),style:{top:-45,position:"absolute"}},"input-prompt"),(null===(em=ej.ports)||void 0===em?void 0:em.inputs.find(e=>"referenceImages"===e.id))&&(!e3||eT.length>0)&&(0,n.jsx)(y.Z,{port:ej.ports.inputs.find(e=>"referenceImages"===e.id),type:"target",position:a.Ly.Left,isConnected:eT.length>0,isConnectable:eT.length<30,style:{top:-30,position:"absolute"}},"input-referenceImages"),(null===(ex=ej.ports)||void 0===ex?void 0:ex.inputs.find(e=>"referenceVideos"===e.id))&&(!e3||eO.length>0)&&(0,n.jsx)(y.Z,{port:ej.ports.inputs.find(e=>"referenceVideos"===e.id),type:"target",position:a.Ly.Left,isConnected:eO.length>0,isConnectable:eO.length<10,style:{top:-15,position:"absolute"}},"input-referenceVideos"),(null===(ef=ej.ports)||void 0===ef?void 0:ef.inputs.find(e=>"referenceAudio"===e.id))&&(!e3||eW.length>0)&&(0,n.jsx)(y.Z,{port:ej.ports.inputs.find(e=>"referenceAudio"===e.id),type:"target",position:a.Ly.Left,isConnected:eW.length>0,isConnectable:eW.length<10,style:{top:0,position:"absolute"}},"input-referenceAudio")]}),(null===(ev=ej.ports)||void 0===ev?void 0:ev.outputs.find(e=>"video"===e.id))&&(0,n.jsx)(y.Z,{port:ej.ports.outputs.find(e=>"video"===e.id),type:"source",position:a.Ly.Right,isConnected:!1,style:{to
1p:-15,position:"absolute"}},"output-video"),(null===(eh=ej.ports)||void 0===eh?void 0:eh.outputs.find(e=>"capturedFrame"===e.id))&&(0,n.jsx)(y.Z,{port:ej.ports.outputs.find(e=>"capturedFrame"===e.id),type:"source",position:a.Ly.Right,isConnected:!1,style:{top:"75%",position:"absolute"}},"output-capturedFrame")]})})}z.displayName="Seedance2VideoNode",t.default=(0,s.memo)(z)},64665:function(e,t,o){var n=o(57437),r=o(2265),s=o(37440);let i=(0,r.memo)(function(e){let{label:t="Connected input:",content:o,className:r,maxHeight:i="200px"}=e;return o?(0,n.jsxs)("div",{className:(0,s.cn)("mb-2 p-2 border border-border",r),style:{backgroundColor:"#2A2B36",borderRadius:"12px"},children:[(0,n.jsx)("p",{className:"text-xs text-muted-foreground mb-1",children:t}),(0,n.jsx)("div",{className:"overflow-y-auto pr-2 scrollbar-thin scrollbar-thumb-muted-foreground/20 scrollbar-track-transparent nodrag nowheel",style:{minHeight:"60px",maxHeight:i},children:(0,n.jsx)("p",{className:"text-sm text-foreground/80 whitespace-pre-wrap break-words",children:o})})]}):null});t.Z=i},35451:function(e,t,o){var n=o(57437),r=o(2265),s=o(132);t.Z=(0,r.memo)(function(e){let{error:t,onRetry:o,canRetry:r=!0,onDismiss:i,autoHideDuration:a,position:l="bottom",inline:d=!0}=e;if(!t)return null;let u="string"==typeof t?t:t.message||"An error occurred",c="string"==typeof t?"error":"warning"===t.severity?"warning":"error";return(0,n.jsx)(s.Z,{type:c,message:u,onClose:i,autoHideDuration:a,position:l,isOpen:!!t,inline:d})})},92354:function(e,t,o){var n=o(57437),r=o(2265),s=o(54887),i=o(34446),a=o(21513),l=o(71106),d=o(74697);t.Z=(0,r.memo)(function(e){let{value:t,onChange:o,placeholder:u="",rows:c=5,className:p="",disabled:m=!1,label:
1x="Edit Prompt",maxLength:f,onKeyDown:v}=e,[h,g]=(0,r.useState)(!1),[b,y]=(0,r.useState)(!1),[j,w]=(0,r.useState)(!1),[N,C]=(0,r.useState)(t),k=(0,r.useRef)(null);(0,r.useEffect)(()=>{w(!0)},[]),(0,r.useEffect)(()=>{C(e=>e===t?e:t)},[t]);let Z=(0,r.useCallback)(e=>{let t=f?e.slice(0,f):e;C(t),o(t)},[o,f]),V=(0,r.useCallback)(()=>{m||g(!0)},[m]),L=(0,r.useCallback)(()=>{g(!1)},[]);(0,r.useEffect)(()=>{if(h&&k.current){k.current.focus();let e=k.current.value.length;k.current.setSelectionRange(e,e)}},[h]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&h&&L()};return h&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow="unset"}},[h,L]);let E=(0,r.useCallback)(()=>{setTimeout(()=>y(!1),150)},[]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("textarea",{value:N,onChange:e=>Z(e.target.value),onFocus:()=>y(!0),onBlur:E,onKeyDown:v,placeholder:u,rows:c,className:p,disabled:m,maxLength:f}),!m&&(0,n.jsx)("button",{type:"button",onClick:V,className:"\n absolute bottom-2 right-2 p-1.5 rounded-lg\n bg-[#2B2C37]/80 hover:bg-[#3B3C47]\n border border-white/5\n transition-all duration-200\n ".concat(b?"opacity-70 hover:opacity-100":"opacity-0 pointer-events-none","\n "),title:"Expand editor",tabIndex:-1,children:(0,n.jsx)(l.Z,{className:"w-3.5 h-3.5 text-muted-foreground"})})]}),j&&(0,s.createPortal)((0,n.jsx)(i.M,{children:h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-[100]",onClick:L},"backdrop"),(0,n.jsx)(a.E.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{type:"spring",damping:25,stiffness:300},className:"fixed inset-0 flex items-center justify-center z-[101] p-4",onClick:L,children:(0,n.jsxs)("div",{className:"w-[600px] max-w-[90vw] rounded-2xl shadow-xl flex flex-col border border-white/[0.04]",style:{background:"#21222D"},onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-white/[0.06]",children:[(0,n.jsx)("h3",{className:"text-base font-medium text-foreground",children:x}),(0,n.jsx)("button",{onClick:L,className:"p-2 hover:bg-white/5 rounded-lg transition-colors",title:"Close (Esc)",children:(0,n.jsx)(d.Z,{className:"w-4 h-4 text-muted-foreground hover:text-foreground"})})]}),(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsx)("textarea",{ref:k,value:N,onChange:e=>Z(e.target.value),onKeyDown:v,placeholder:u,maxLength:f,className:"w-full h-[400px] p-4 resize-none focus:outline-none rounded-xl text-sm text-foreground placeholder:text-muted-foreground",style:{backgroundColor:"rgba(236, 230, 240, 0.05)",border:"none"}}),f&&(0,n.jsxs)("div",{className:"mt-2 text-xs text-muted-foreground text-right",children:[N.length," / ",f]})]})]})},"modal")]})}),document.body)]})})},90501:function(e,t,o){o.d(t,{Z:function(){return m}});var n=o(57437),r=o(2265),s=o(37440),i=o(22468),a=o(30690),l=o(27071);let d=l.zt,u=l.fC,c=l.xz,p=r.forwardRef((e,t)=>{let{className:o,sideOffset:r=4,...i}=e;return(0,n.jsx)(l.h_,{children:(0,n.jsx)(l.VY,{ref:t,sideOffset:r,className:(0,s.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",o),...i})})});p.displayName=l.VY.displayName;var m=(0,r.memo)(function(e){let{id:t,label:o,checked:l,onChange:m,disabled:x=!1,description:f,infoTooltip:v,className:h}=e,g=(0,r.useCallback)(e=>{e.stopPropagation(),x||m(!l)},[l,m,x]),b=(0,r.useCallback)(e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),e.stopPropagation(),x||m(!l))},[l,m,x]);return(0,n.jsxs)("div",{className:(0,s.cn)("space-y-1",h),children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{role:"checkbox","aria-checked":l,"aria-disabled":x,tabIndex:x?-1:0,onClick:g,onKeyDown:b,onMouseDown:e=>e.stopPropagation(),className:(0,s.cn)("w-[18px] h-[18px] rounded-[4px] flex items-center justify-center transition-all cursor-pointer nodrag nowheel",l?"bg-[#2589FF]":"border-2 border-gray-400 dark:border-gray-600 bg-transparent",x&&"opacity-50 cursor-not-allowed"),children:l&&(0,n.jsx)(i.Z,{className:"w-3 h-3 text-white",strokeWidth:3})}),(0,n.jsx)("label",{htmlFor:t,className:(0,s.cn)("text-xs text-muted-foreground cursor-pointer select-none",x&&"cursor-not-allowed"),onClick:g,children:o}),v&&(0,n.jsx)(d,{children:(0,n.jsxs)(u,{children:[(0,n.jsx)(c,{asChild:!0,children:(0,n.jsx)("button",{type:"button",className:"text-muted-foreground hover:text-foreground transition-colors",onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,n.jsx)(a.Z,{className:"w-3.5 h-3.5"})})}),(0,n.jsx)(p,{children:(0,n.jsx)("p",{children:v})})]})})]}),f&&(0,n.jsx)("p",{className:"text-[10px] text-muted-foreground ml-7",children:f})]})})},36963:function(e,t,o){o.d(t,{Z:function(){return a}});var n=o(57437),r=o(2265),s=o(42421),i=o(37440);function a(e){let{value:t,options:o,onChange:a,placeholder:l="Select an option",disabled:d=!1,className:u,buttonClassName:c,menuClassName:p,optionClassName:m,label:x,showInfo:f=!1,onInfoClick:v,infoIcon:h,ariaLabel:g}=e,[b,y]=(0,r.useState)(!1),j=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let w=o.find(e=>e.value===t),N=(null==w?void 0:w.label)||l,C=e=>{a(e),y(!1)};return(0,n.jsxs)("div",{className:(0,i.cn)("relative",u),ref:j,children:[x&&(0,n.jsxs)("div",{className:"flex items-center justify-between mb-1",style:{gap:"0px",height:"16px",paddingTop:"10px",paddingBottom:"10px"},children:[(0,n.jsx)("label",{className:"text-xs text-muted-foreground",children:x}),f&&v&&(0,n.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),v()},className:"text-muted-foreground hover:text-foreground transition-colors",children:h||(0,n.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,n.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})})]}),(0,n.jsxs)("button",{type:"button","aria-label":g,onClick:()=>!d&&y(!b),disabled:d,className:(0,i.cn)("w-full px-3 py-2 text-left hover:bg-muted/50 transition-colors flex items-center justify-between nodrag",c),style:{backgroundColor:"rgba(236, 230, 240, 0.05)",borderRadius:"12px",opacity:d?.5:1,cursor:d?"not-allowed":"pointer",border:"none"},children:[(0,n.jsx)("span",{className:"text-sm truncate",style:{color:"rgba(224, 224, 224, 1)"},children:N}),(0,n.jsx)(s.Z,{className:(0,i.cn)("w-4 h-4 transition-transform",b&&"rotate-180"),style:{color:"#636470"}})]}),b&&!d&&(0,n.jsx)("div",{className:(0,i.cn)("absolute top-full left-0 right-0 mt-2 rounded-2xl shadow-lg z-50 max-h-60 overflow-y-auto nodrag nowheel scrollbar-thin scrollbar-thumb-muted-foreground
1/20 scrollbar-track-transparent",p),style:{backgroundColor:"#21222D",border:"none"},onWheel:e=>{e.stopPropagation()},children:o.map(e=>(0,n.jsx)("button",{onClick:()=>!e.disabled&&C(e.value),disabled:e.disabled,className:(0,i.cn)("w-full px-3 py-2 text-left text-sm transition-colors",e.disabled&&"opacity-50 cursor-not-allowed",m),style:{backgroundColor:e.value===t?"#2B2C37":"transparent"},onMouseEnter:t=>{e.disabled||(t.currentTarget.style.backgroundColor="#2B2C37")},onMouseLeave:o=>{e.disabled||(o.currentTarget.style.backgroundColor=e.value===t?"#2B2C37":"transparent")},children:e.label},e.value))})]})}},13289:function(e,t,o){var n=o(57437),r=o(2265),s=o(99913),i=o(74697),a=o(37440),l=o(79013);let d={sm:"w-10 h-10",md:"w-12 h-12",lg:"w-16 h-16"};function u(e){let{imageUrl:t,tag:o,onTagEdit:u,onRemove:c,isConnected:p=!1,className:m,thumbnailSize:x="md",showEditButton:f=!0,showRemoveButton:v=!0}=e,[h,g]=(0,r.useState)(!1),[b,y]=(0,r.useState)(o),j=()=>{b&&b!==o&&u&&u(b),g(!1)},w=()=>{y(o),g(!1)};return(0,n.jsxs)("div",{className:(0,a.cn)("flex items-center gap-4 p-1.5 group relative",m),style:{borderRadius:"12px",background:"#2A2B36",boxShadow:"0 8px 64px 0 rgba(0, 0, 0, 0.56)"},children:[(0,n.jsx)("div",{className:(0,a.cn)("overflow-hidden flex-shrink-0",d[x]),style:{borderRadius:"6px"},children:(0,n.jsx)("img",{src:t,alt:o,className:"w-full h-full object-cover"})}),h?(0,n.jsx)("input",{type:"text",value:b,onChange:e=>y(e.target.value),onBlur:j,onKeyDown:e=>{"Enter"===e.key&&j(),"Escape"===e.key&&w()},autoFocus:!0,className:"flex-1 px-2 py-1 text-sm font-mono bg-background border border-border rounded nodrag"}):(0,n.jsxs)("div",{className:"flex-1 flex items-center gap-1",children:[(0,n.jsx)("span",{className:"text-sm font-mono",children:o}),f&&u&&(0,n.jsx)("button",{onClick:()=>g(!0),className:"p-0.5 hover:bg-accent rounded transition-colors",title:"Edit tag",children:(0,n.jsx)(s.Z,{className:"w-3 h-3"})})]}),v&&c&&(0,n.jsx)(n.Fragment,{children:p?(0,n.jsx)(l.Z,{className:"text-muted-foreground/50 w-4 h-2.5",title:"Disconnect edge to remove"}):(0,n.jsx)("button",{onClick:c,className:"p-1 hover:bg-accent rounded transition-colors",title:"Remove image",children:(0,n.jsx)(i.Z,{className:"w-4 h-4 text-destructive"})})})]})}u.displayName="ReferenceImageTag",t.Z=(0,r.memo)(u)},79013:function(e,t,o){var n=o(57437);o(2265),t.Z=e=>{let{className:t="",title:o}=e;return(0,n.jsxs)("svg",{width:"16",height:"9",viewBox:"0 0 16 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[o&&(0,n.jsx)("title",{children:o}),(0,n.jsx)("path",{d:"M3.63635 0.947266C1.51053 0.947266 -0.189521 2.95385 0.0170248 5.33945C0.197389 7.41945 1.89296 8.94727 3.7926 8.94727H5.81818C6.21963 8.94727 6.54545 8.58887 6.54545 8.14727C6.54545 7.70567 6.21963 7.34727 5.81818 7.34727H3.75993C2.57884 7.34727 1.51988 6.37379 1.45879 5.07539C1.39261 3.69139 2.39271 2.54727 3.63635 2.54727H5.81818C6.21963 2.54727 6.54545 2.18887 6.54545 1.74727C6.54545 1.30567 6.21963 0.947266 5.81818 0.947266H3.63635ZM10.1818 0.947266C9.78037 0.947266 9.45455 1.30567 9.45455 1.74727C9.45455 2.18887 9.78037 2.54727 10.1818 2.54727H12.2401C13.4212 2.54727 14.4801 3.52074 14.5412 4.81914C14.6074 6.20314 13.6073 7.34727 12.3636 7.34727H10.1818C9.78037 7.34727 9.45455 7.70567 9.45455 8.14727C9.45455 8.58887 9.78037 8.94727 10.1818 8.94727H12.3636C14.4895 8.94727 16.1895 6.94068 15.983 4.55508C15.8026 2.47508 14.107 0.947266 12.2074 0.947266H10.1818ZM5.0909 4.14727C4.68945 4.14727 4.36363 4.50567 4.36363 4.94727C4.36363 5.38887 4.68945 5.74727 5.0909 5.74727H10.9091C11.3106 5.74727 11.6364 5.38887 11.6364 4.94727C11.6364 4.50567 11.3106 4.14727 10.9091 4.14727H5.0909Z",fill:"currentColor"})]})}},95338:function(e,t,o){var n=o(57437);t.Z=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,n.jsx)("path",{d:"M4.74301 15.5238L2 16.2292V3.73145L4.74301 4.4368V15.5238Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M17.9999 16.2553L15.2517 16.9606V3L17.9999 3.70012V16.2553Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M9.09312 15.9054L6.3501 16.6108V9.24902L9.09312 9.95435V15.9054Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.8857 8.15657L13.634 7.45117V14.8129L10.8857 14.1076V8.15657Z",fill:"currentColor"})]})}},13380:function(e,t,o){o.d(t,{b:function(){return s}});
1var n=o(2265),r=o(28560);function s(){let e=(0,r.useCreditStore)(e=>e.updateBalanceFromHeaders);return(0,n.useCallback)(async(t,o)=>{try{let n=await fetch(t,{...o,cache:"no-store"});return e(n.headers),n}catch(e){throw e}},[e])}},5078:function(e,t,o){o.d(t,{v:function(){return r}});var n=o(23096);function r(){return(0,n.oR)(e=>e.nodeLookup)}},6884:function(e,t,o){o.d(t,{Z:function(){return n}});/** 2 * @license lucide-react v0.400.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let n=(0,o(78030).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},23787:function(e,t,o){o.d(t,{Z:function(){return n}});/** 7 * @license lucide-react v0.400.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let n=(0,o(78030).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},62990:function(e,t,o){o.d(t,{Z:function(){return n}});/** 12 * @license lucide-react v0.400.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let n=(0,o(78030).Z)("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]])},40036:function(e,t,o){o.d(t,{Z:function(){return n}});/** 17 * @license lucide-react v0.400.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let n=(0,o(78030).Z)("ImagePlus",[["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"31hg93"}],["line",{x1:"16",x2:"22",y1:"5",y2:"5",key:"ez7e4s"}],["line",{x1:"19",x2:"19",y1:"2",y2:"8",key:"1gkr8c"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},18604:function(e,t,o){o.d(t,{Z:function(){return n}});/** 22 * @license lucide-react v0.400.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let n=(0,o(78030).Z)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},71106:function(e,t,o){o.d(t,{Z:function(){return n}});/** 27 * @license lucide-react v0.400.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let n=(0,o(78030).Z)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},14504:function(e,t,o){o.d(t,{Z:function(){return n}});/** 32 * @license lucide-react v0.400.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let n=(0,o(78030).Z)("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},99913:function(e,t,o){o.d(t,{Z:function(){return n}});/** 37 * @license lucide-react v0.400.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */let n=(0,o(78030).Z)("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])}}]);
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.