@imgly/plugin-ai-video-generation-web 0.2.12 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +319 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/eachlabs/KlingO1.image2video.d.ts +23 -0
- package/dist/eachlabs/KlingV26Pro.image2video.d.ts +23 -0
- package/dist/eachlabs/KlingV26Pro.text2video.d.ts +24 -0
- package/dist/eachlabs/Veo31.image2video.d.ts +25 -0
- package/dist/eachlabs/Veo31.text2video.d.ts +25 -0
- package/dist/eachlabs/createEachLabsClient.d.ts +37 -0
- package/dist/eachlabs/createVideoProvider.d.ts +107 -0
- package/dist/eachlabs/index.d.ts +19 -0
- package/dist/eachlabs/index.mjs +142 -0
- package/dist/eachlabs/index.mjs.map +7 -0
- package/dist/eachlabs/types.d.ts +10 -0
- package/dist/eachlabs/utils.d.ts +23 -0
- package/dist/fal-ai/index.mjs.map +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/dist/runware/Sora2.image2video.d.ts +32 -0
- package/dist/runware/Sora2.text2video.d.ts +30 -0
- package/dist/runware/Sora2Pro.image2video.d.ts +32 -0
- package/dist/runware/Sora2Pro.text2video.d.ts +30 -0
- package/dist/runware/Veo31.image2video.d.ts +33 -0
- package/dist/runware/Veo31.text2video.d.ts +31 -0
- package/dist/runware/Veo31Fast.image2video.d.ts +34 -0
- package/dist/runware/Veo31Fast.text2video.d.ts +32 -0
- package/dist/runware/createRunwareClient.d.ts +57 -0
- package/dist/runware/createVideoProvider.d.ts +109 -0
- package/dist/runware/index.d.ts +28 -0
- package/dist/runware/index.mjs +142 -0
- package/dist/runware/index.mjs.map +7 -0
- package/dist/runware/types.d.ts +10 -0
- package/dist/runware/utils.d.ts +5 -0
- package/package.json +43 -23
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
function Ht(e,t){let{cesdk:r}=t,i=t.propertyKey??"image_url",n=ce(e);return r.i18n.setTranslations({en:{[`panel.${n}`]:"Select Image To Change","ly.img.ai.imageSelection.selectImage.label":"Select Image","ly.img.ai.imageSelection.error.svg":"SVG images are not supported. Please choose a different image.","ly.img.ai.imageSelection.error.invalidType":"Only images are supported. Found '{mimeType}'. Please choose a different image."}}),qt(e,r),{[i]:(o,a)=>{let{builder:s,experimental:{global:u},payload:p}=o,l,d=o.providerConfig,w=o.config,x=d?.properties?.[a.id]??w?.properties?.[a.id];x?.default&&(typeof x.default=="function"?l=x.default({}):l=x.default);let T=l??p?.url??t.defaultUrl,S=u(`${e}.${a.id}`,T);return s.MediaPreview(a.id,{preview:{type:"image",uri:S.value},action:{label:"ly.img.ai.imageSelection.selectImage.label",onClick:()=>{r?.ui.openPanel(n,{payload:{onSelect:te=>{te.meta?.uri!=null&&S.setValue(te.meta?.uri)}}})}}}),()=>({id:a.id,type:"string",value:S.value})}}}function qt(e,t){t?.ui.registerPanel(ce(e),({builder:r,payload:i})=>{r.Library(`${e}.library.image`,{entries:["ly.img.image"],onSelect:async n=>{let o=n?.meta?.uri;if(o==null)return;let a=await t.engine.editor.getMimeType(o);a==="image/svg+xml"?t.ui.showNotification({type:"warning",message:"ly.img.ai.imageSelection.error.svg"}):a.startsWith("image/")?(i?.onSelect(n),t?.ui.closePanel(ce(e))):t.ui.showNotification({type:"warning",message:"ly.img.ai.imageSelection.error.invalidType"})}})})}function ce(e){return`ly.img.ai.${e}.imageSelection`}var Kt=Ht,Zt=class{constructor(e,t=[],r){this.id=e,this.translateLabel=r?.translateLabel,this.assets=t.map(i=>{if(typeof i.label=="string"&&!(i.label&&typeof i.label=="object")){let n=i;return{id:n.id,label:{en:n.label},meta:n.thumbUri?{...n.meta??{},thumbUri:n.thumbUri}:n.meta}}return i}),this.activeAssetIds=new Set,this.assets.length>0&&this.activeAssetIds.add(this.assets[0].id)}async findAssets(e){let{page:t,perPage:r,locale:i="en",sortActiveFirst:n,query:o,tags:a,groups:s,excludeGroups:u,sortingOrder:p,sortKey:l}=e,d=[...this.assets];if(s&&s.length>0&&(d=d.filter(c=>c.groups&&s.some(f=>c.groups?.includes(f)))),u&&u.length>0&&(d=d.filter(c=>!c.groups||!u.some(f=>c.groups?.includes(f)))),o){let c=o.toLowerCase();d=d.filter(f=>{let h=f.label?.[i]?.toLowerCase(),I=f.tags?.[i]||[];return h&&h.includes(c)||I.some(Gt=>Gt.toLowerCase().includes(c))})}if(a&&a.length>0){let c=Array.isArray(a)?a:[a];d=d.filter(f=>{let h=f.tags?.[i]||[];return c.some(I=>h.includes(I))})}n&&d.sort((c,f)=>{let h=this.activeAssetIds.has(c.id),I=this.activeAssetIds.has(f.id);return h&&!I?-1:!h&&I?1:0}),l&&l!=="id"?d.sort((c,f)=>{let h=c.meta?.[l],I=f.meta?.[l];return h===void 0?1:I===void 0?-1:typeof h=="string"&&typeof I=="string"?p==="Descending"?I.localeCompare(h):h.localeCompare(I):typeof h=="number"&&typeof I=="number"?p==="Descending"?I-h:h-I:0}):l==="id"&&d.sort((c,f)=>p==="Descending"?f.id.localeCompare(c.id):c.id.localeCompare(f.id));let w=d.length,x=t*r,T=x+r,S=d.slice(x,T).map(c=>{let f=c.label?.[i]||"",h=this.translateLabel?this.translateLabel(c.id,f,i):f;return{id:c.id,groups:c.groups,meta:c.meta,payload:c.payload,locale:i,label:h,tags:c.tags?.[i],active:this.activeAssetIds.has(c.id)}}),te=T<w?t+1:void 0;return{assets:S,currentPage:t,nextPage:te,total:w}}updateLabel(e,t,r){this.assets.forEach(i=>{i.id===e&&(i.label=i.label||{},i.label[r]=t)})}getAssetSelectValue(e){let t=this.assets.find(({id:r})=>r===e);if(t){let r=this.translateLabel?this.translateLabel(t.id,t.label?.en||"",""):t.label?.en||"";return{id:t.id,label:r,thumbUri:t.meta?.thumbUri}}}getActiveSelectValue(){let e=this.getActiveAssetIds();if(e.length>0){let t=this.assets.find(({id:r})=>r===e[0]);if(t){let r=this.translateLabel?this.translateLabel(t.id,t.label?.en||"",""):t.label?.en||"";return{id:t.id,label:r,thumbUri:t.meta?.thumbUri}}}}getTranslatedLabel(e){let t=this.assets.find(({id:r})=>r===e);if(t)return this.translateLabel?this.translateLabel(t.id,t.label?.en||"",""):t.label?.en||""}getAsset(e){return this.assets.find(t=>t.id===e)}setAssetActive(e){this.activeAssetIds.add(e)}getActiveAssetIds(){return Array.from(this.activeAssetIds)}setAssetsActive(e){e.forEach(t=>this.activeAssetIds.add(t))}setAssetInactive(e){this.activeAssetIds.delete(e)}clearActiveAssets(){this.activeAssetIds.clear()}isAssetActive(e){return this.activeAssetIds.has(e)}addAsset(e){let t=this.assets.findIndex(r=>r.id===e.id);t>=0?this.assets[t]=e:this.assets.push(e)}removeAsset(e){let t=this.assets.findIndex(r=>r.id===e);t!==-1&&(this.assets.splice(t,1),this.activeAssetIds.delete(e))}async getGroups(){let e=new Set;return this.assets.forEach(t=>{t.groups&&t.groups.forEach(r=>e.add(r))}),Array.from(e)}getSupportedMimeTypes(){return["image/jpeg","image/png","image/svg+xml","image/webp","video/mp4","audio/mpeg"]}};var Qt=typeof global=="object"&&global&&global.Object===Object&&global,ze=Qt,Yt=typeof self=="object"&&self&&self.Object===Object&&self,Wt=ze||Yt||Function("return this")(),A=Wt,Jt=A.Symbol,_=Jt,Ue=Object.prototype,Xt=Ue.hasOwnProperty,er=Ue.toString,B=_?_.toStringTag:void 0;function tr(e){var t=Xt.call(e,B),r=e[B];try{e[B]=void 0;var i=!0}catch{}var n=er.call(e);return i&&(t?e[B]=r:delete e[B]),n}var rr=tr,ir=Object.prototype,nr=ir.toString;function or(e){return nr.call(e)}var ar=or,sr="[object Null]",lr="[object Undefined]",Ce=_?_.toStringTag:void 0;function ur(e){return e==null?e===void 0?lr:sr:Ce&&Ce in Object(e)?rr(e):ar(e)}var K=ur;function dr(e){return e!=null&&typeof e=="object"}var ye=dr,El=Array.isArray;function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Be=cr,pr="[object AsyncFunction]",gr="[object Function]",mr="[object GeneratorFunction]",fr="[object Proxy]";function hr(e){if(!Be(e))return!1;var t=K(e);return t==gr||t==mr||t==pr||t==fr}var yr=hr,br=A["__core-js_shared__"],le=br,Pe=function(){var e=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function vr(e){return!!Pe&&Pe in e}var wr=vr,xr=Function.prototype,Ir=xr.toString;function kr(e){if(e!=null){try{return Ir.call(e)}catch{}try{return e+""}catch{}}return""}var E=kr,Sr=/[\\^$.*+?()[\]{}|]/g,Ar=/^\[object .+?Constructor\]$/,Cr=Function.prototype,Pr=Object.prototype,Er=Cr.toString,Mr=Pr.hasOwnProperty,Tr=RegExp("^"+Er.call(Mr).replace(Sr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jr(e){if(!Be(e)||wr(e))return!1;var t=yr(e)?Tr:Ar;return t.test(E(e))}var _r=jr;function Lr(e,t){return e?.[t]}var Vr=Lr;function Dr(e,t){var r=Vr(e,t);return _r(r)?r:void 0}var L=Dr,$r=L(A,"WeakMap"),pe=$r;function Rr(e,t){return e===t||e!==e&&t!==t}var Or=Rr,Fr=9007199254740991;function Nr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fr}var zr=Nr,Ml=Object.prototype,Ur="[object Arguments]";function Br(e){return ye(e)&&K(e)==Ur}var Ee=Br,Ge=Object.prototype,Gr=Ge.hasOwnProperty,Hr=Ge.propertyIsEnumerable,Tl=Ee(function(){return arguments}())?Ee:function(e){return ye(e)&&Gr.call(e,"callee")&&!Hr.call(e,"callee")},He=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Me=He&&typeof module=="object"&&module&&!module.nodeType&&module,qr=Me&&Me.exports===He,Te=qr?A.Buffer:void 0,jl=Te?Te.isBuffer:void 0,Kr="[object Arguments]",Zr="[object Array]",Qr="[object Boolean]",Yr="[object Date]",Wr="[object Error]",Jr="[object Function]",Xr="[object Map]",ei="[object Number]",ti="[object Object]",ri="[object RegExp]",ii="[object Set]",ni="[object String]",oi="[object WeakMap]",ai="[object ArrayBuffer]",si="[object DataView]",li="[object Float32Array]",ui="[object Float64Array]",di="[object Int8Array]",ci="[object Int16Array]",pi="[object Int32Array]",gi="[object Uint8Array]",mi="[object Uint8ClampedArray]",fi="[object Uint16Array]",hi="[object Uint32Array]",g={};g[li]=g[ui]=g[di]=g[ci]=g[pi]=g[gi]=g[mi]=g[fi]=g[hi]=!0;g[Kr]=g[Zr]=g[ai]=g[Qr]=g[si]=g[Yr]=g[Wr]=g[Jr]=g[Xr]=g[ei]=g[ti]=g[ri]=g[ii]=g[ni]=g[oi]=!1;function yi(e){return ye(e)&&zr(e.length)&&!!g[K(e)]}var bi=yi;function vi(e){return function(t){return e(t)}}var wi=vi,qe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,G=qe&&typeof module=="object"&&module&&!module.nodeType&&module,xi=G&&G.exports===qe,ue=xi&&ze.process,Ii=function(){try{var e=G&&G.require&&G.require("util").types;return e||ue&&ue.binding&&ue.binding("util")}catch{}}(),je=Ii,_e=je&&je.isTypedArray,_l=_e?wi(_e):bi,ki=Object.prototype,Ll=ki.hasOwnProperty;function Si(e,t){return function(r){return e(t(r))}}var Ai=Si,Vl=Ai(Object.keys,Object),Ci=Object.prototype,Dl=Ci.hasOwnProperty,Pi=L(Object,"create"),H=Pi;function Ei(){this.__data__=H?H(null):{},this.size=0}var Mi=Ei;function Ti(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ji=Ti,_i="__lodash_hash_undefined__",Li=Object.prototype,Vi=Li.hasOwnProperty;function Di(e){var t=this.__data__;if(H){var r=t[e];return r===_i?void 0:r}return Vi.call(t,e)?t[e]:void 0}var $i=Di,Ri=Object.prototype,Oi=Ri.hasOwnProperty;function Fi(e){var t=this.__data__;return H?t[e]!==void 0:Oi.call(t,e)}var Ni=Fi,zi="__lodash_hash_undefined__";function Ui(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=H&&t===void 0?zi:t,this}var Bi=Ui;function V(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}V.prototype.clear=Mi;V.prototype.delete=ji;V.prototype.get=$i;V.prototype.has=Ni;V.prototype.set=Bi;var Le=V;function Gi(){this.__data__=[],this.size=0}var Hi=Gi;function qi(e,t){for(var r=e.length;r--;)if(Or(e[r][0],t))return r;return-1}var re=qi,Ki=Array.prototype,Zi=Ki.splice;function Qi(e){var t=this.__data__,r=re(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Zi.call(t,r,1),--this.size,!0}var Yi=Qi;function Wi(e){var t=this.__data__,r=re(t,e);return r<0?void 0:t[r][1]}var Ji=Wi;function Xi(e){return re(this.__data__,e)>-1}var en=Xi;function tn(e,t){var r=this.__data__,i=re(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var rn=tn;function D(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}D.prototype.clear=Hi;D.prototype.delete=Yi;D.prototype.get=Ji;D.prototype.has=en;D.prototype.set=rn;var ie=D,nn=L(A,"Map"),q=nn;function on(){this.size=0,this.__data__={hash:new Le,map:new(q||ie),string:new Le}}var an=on;function sn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ln=sn;function un(e,t){var r=e.__data__;return ln(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ne=un;function dn(e){var t=ne(this,e).delete(e);return this.size-=t?1:0,t}var cn=dn;function pn(e){return ne(this,e).get(e)}var gn=pn;function mn(e){return ne(this,e).has(e)}var fn=mn;function hn(e,t){var r=ne(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}var yn=hn;function $(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}$.prototype.clear=an;$.prototype.delete=cn;$.prototype.get=gn;$.prototype.has=fn;$.prototype.set=yn;var Ke=$;function bn(){this.__data__=new ie,this.size=0}var vn=bn;function wn(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var xn=wn;function In(e){return this.__data__.get(e)}var kn=In;function Sn(e){return this.__data__.has(e)}var An=Sn,Cn=200;function Pn(e,t){var r=this.__data__;if(r instanceof ie){var i=r.__data__;if(!q||i.length<Cn-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ke(i)}return r.set(e,t),this.size=r.size,this}var En=Pn;function Z(e){var t=this.__data__=new ie(e);this.size=t.size}Z.prototype.clear=vn;Z.prototype.delete=xn;Z.prototype.get=kn;Z.prototype.has=An;Z.prototype.set=En;var Mn=Object.prototype,$l=Mn.propertyIsEnumerable,Tn=L(A,"DataView"),ge=Tn,jn=L(A,"Promise"),me=jn,_n=L(A,"Set"),fe=_n,Ve="[object Map]",Ln="[object Object]",De="[object Promise]",$e="[object Set]",Re="[object WeakMap]",Oe="[object DataView]",Vn=E(ge),Dn=E(q),$n=E(me),Rn=E(fe),On=E(pe),j=K;(ge&&j(new ge(new ArrayBuffer(1)))!=Oe||q&&j(new q)!=Ve||me&&j(me.resolve())!=De||fe&&j(new fe)!=$e||pe&&j(new pe)!=Re)&&(j=function(e){var t=K(e),r=t==Ln?e.constructor:void 0,i=r?E(r):"";if(i)switch(i){case Vn:return Oe;case Dn:return Ve;case $n:return De;case Rn:return $e;case On:return Re}return t});var Rl=A.Uint8Array,Fn="__lodash_hash_undefined__";function Nn(e){return this.__data__.set(e,Fn),this}var zn=Nn;function Un(e){return this.__data__.has(e)}var Bn=Un;function he(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ke;++t<r;)this.add(e[t])}he.prototype.add=he.prototype.push=zn;he.prototype.has=Bn;var Fe=_?_.prototype:void 0,Ol=Fe?Fe.valueOf:void 0,Gn=Object.prototype,Fl=Gn.hasOwnProperty,Hn=Object.prototype,Nl=Hn.hasOwnProperty,zl=new RegExp(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"i"),Ul=new RegExp(/[A-Fa-f0-9]{1}/,"g"),Bl=new RegExp(/[A-Fa-f0-9]{2}/,"g");function qn(e){return e!==void 0}var Kn=qn;function Zn(e){return e?.version?e.version.localeCompare("1.59.0",void 0,{numeric:!0,sensitivity:"base"})>=0&&typeof e.i18n?.translate=="function":!1}function Qn(e){return typeof e?.translate=="function"}function Ne(e,t,r){return e&&Zn(e)&&Qn(e.i18n)?e.i18n.translate(t):r}function Yn(e,t){let{cesdk:r}=t;if(r==null)return{};let i=t.propertyKey??"style",n=Jn(e);r.i18n.setTranslations({en:{[`panel.${n}`]:"Select Style",[`${e}.${i}`]:"Style","ly.img.ai.styleTransfer.none":"None","ly.img.ai.styleTransfer.anime":"Anime","ly.img.ai.styleTransfer.cyberpunk":"Cyberpunk","ly.img.ai.styleTransfer.kodak400":"Kodak 400","ly.img.ai.styleTransfer.watercolor":"Watercolor","ly.img.ai.styleTransfer.darkFantasy":"Dark Fantasy","ly.img.ai.styleTransfer.vaporwave":"Vaporwave","ly.img.ai.styleTransfer.vectorFlat":"Vector Flat","ly.img.ai.styleTransfer.3dAnimation":"3D Animation","ly.img.ai.styleTransfer.ukiyoe":"Ukiyo\u2011e","ly.img.ai.styleTransfer.surreal":"Surreal","ly.img.ai.styleTransfer.steampunk":"Steampunk","ly.img.ai.styleTransfer.nightBokeh":"Night Bokeh","ly.img.ai.styleTransfer.popArt":"Pop Art"}});let o=eo({baseURL:t.baseURL??"https://cdn.img.ly/assets/plugins/plugin-ai-image-generation-web/v1/gpt-image-1/",includeNone:!0,cesdk:r}),a=o;t.styles!=null&&(Array.isArray(t.styles)?a=t.styles:typeof t.styles=="function"&&(a=t.styles(o)));let s=to({cesdk:r,providerId:e,styles:a}),u=s.id;return ro(s,{cesdk:r}),Wn({providerId:e,cesdk:r,panelId:n,entryId:u}),{[t.propertyKeyForPrompt??"prompt"]:(p,l)=>{let d=p.state("prompt","");return p.builder.TextArea(`${l.id}`,{inputLabel:t.i18n?.prompt?.inputLabel??t.propertyKeyForPrompt??"prompt",placeholder:t.i18n?.prompt?.placeholder,...d}),()=>{let[w]=s.getActiveAssetIds(),x=s.getAsset(w);return{id:l.id,type:"string",value:x?.meta?.prompt==null?d.value:`${d.value}; ${x.meta.prompt}`}}},[i]:(p,l)=>{let{builder:d,state:w}=p;if(a.length>0){let x=w("style",a[0]);return d.Button(`${l.id}`,{inputLabel:`${e}.${l.id}`,icon:"@imgly/Appearance",isDisabled:a.length===0,trailingIcon:"@imgly/ChevronRight",label:x.value.label,labelAlignment:"left",onClick:()=>{let T={onSelect:async S=>{s.clearActiveAssets(),s.setAssetActive(S.id),x.setValue({id:S.id,label:S.label??S.id}),r.ui.closePanel(n)}};r.ui.openPanel(n,{payload:T})}}),()=>({id:l.id,type:"string",value:x.value.id})}return()=>({id:l.id,type:"string",value:"none"})}}}function Wn(e){let{providerId:t,cesdk:r,panelId:i,entryId:n}=e;r?.ui.registerPanel(i,({builder:o,payload:a})=>{a?.onSelect==null&&o.Section(`${t}.error`,{children:()=>{o.Text("error",{content:"No onSelect function provided for the style selection panel."})}}),o.Library(`${t}.library.image`,{entries:[n],onSelect:async s=>{a?.onSelect?.(s)}})})}function Jn(e){return`ly.img.ai.${e}.styleSelection`}var Xn=[{id:"none",labelKey:"ly.img.ai.styleTransfer.none",prompt:""},{id:"anime-celshaded",labelKey:"ly.img.ai.styleTransfer.anime",prompt:"anime cel\u2011shaded, bright pastel palette, expressive eyes, clean line art "},{id:"cyberpunk-neon",labelKey:"ly.img.ai.styleTransfer.cyberpunk",prompt:"cyberpunk cityscape, glowing neon signage, reflective puddles, dark atmosphere"},{id:"kodak-portra-400",labelKey:"ly.img.ai.styleTransfer.kodak400",prompt:"shot on Kodak Portra 400, soft grain, golden\u2011hour warmth, 35 mm photo"},{id:"watercolor-storybook",labelKey:"ly.img.ai.styleTransfer.watercolor",prompt:"loose watercolor washes, gentle gradients, dreamy storybook feel"},{id:"dark-fantasy-realism",labelKey:"ly.img.ai.styleTransfer.darkFantasy",prompt:"dark fantasy realm, moody chiaroscuro lighting, hyper\u2011real textures"},{id:"vaporwave-retrofuturism",labelKey:"ly.img.ai.styleTransfer.vaporwave",prompt:"retro\u2011futuristic vaporwave, pastel sunset gradient, chrome text, VHS scanlines"},{id:"minimal-vector-flat",labelKey:"ly.img.ai.styleTransfer.vectorFlat",prompt:"minimalist flat vector illustration, bold geometry, two\u2011tone palette"},{id:"pixarstyle-3d-render",labelKey:"ly.img.ai.styleTransfer.3dAnimation",prompt:"Pixar\u2011style 3D render, oversized eyes, subtle subsurface scattering, cinematic lighting"},{id:"ukiyoe-woodblock",labelKey:"ly.img.ai.styleTransfer.ukiyoe",prompt:"ukiyo\u2011e woodblock print, Edo\u2011period style, visible washi texture, limited color ink"},{id:"surreal-dreamscape",labelKey:"ly.img.ai.styleTransfer.surreal",prompt:"surreal dreamscape, floating objects, impossible architecture, vivid clouds"},{id:"steampunk-victorian",labelKey:"ly.img.ai.styleTransfer.steampunk",prompt:"Victorian steampunk world, ornate brass gears, leather attire, atmospheric fog"},{id:"nightstreet-photo-bokeh",labelKey:"ly.img.ai.styleTransfer.nightBokeh",prompt:"night\u2011time street shot, large aperture bokeh lights, candid urban mood"},{id:"comicbook-pop-art",labelKey:"ly.img.ai.styleTransfer.popArt",prompt:"classic comic\u2011book panel, halftone shading, exaggerated action lines, CMYK pop colors"}];function eo(e){return Xn.map(t=>t.id==="none"?e.includeNone?{id:t.id,label:Ne(e.cesdk,t.labelKey,t.labelKey),prompt:t.prompt,thumbUri:`${e.baseURL}/thumbnails/None.svg`}:void 0:{id:t.id,label:Ne(e.cesdk,t.labelKey,t.labelKey),prompt:t.prompt,thumbUri:`${e.baseURL}/thumbnails/${t.id}.jpeg`}).filter(Kn)}var to=e=>{let t=e.styles.map(a=>({...a,meta:{prompt:a.prompt}})),r=e.cesdk.engine.asset.findAllSources(),i=`${e.providerId}/styles`;for(;r.includes(i);)i+=`-${Math.random().toString(36).substring(2,5)}`;let n=new Zt(i,t),o=e.styles[0];return n.setAssetActive(o.id),n},ro=(e,t)=>{t.cesdk.engine.asset.addSource(e),t.cesdk.ui.addAssetLibraryEntry({id:e.id,sourceIds:[e.id],gridItemHeight:"square",gridBackgroundType:"cover",cardLabel:({label:r})=>r,cardLabelPosition:()=>"below"})},io=Yn;var no="ly.img.ai";function k(e){return`${no}.${e}`}function y(e,t,r){let i=`${t}.iconSetAdded`;e.ui.experimental.hasGlobalStateValue(i)||(e.ui.addIconSet(t,r),e.ui.experimental.setGlobalStateValue(i,!0))}function Ze(e,t){let r={...e};if(!t)return r;for(let[i,n]of Object.entries(t))n===!1||n===null||n===void 0?delete r[i]:n===!0?i in e||(r[i]=!0):r[i]=n;return r}var de="@imgly/plugin-ai-generation",Gl=`
|
|
2
|
+
<svg>
|
|
3
|
+
<symbol
|
|
4
|
+
fill="none"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
id="@imgly/Sparkle"
|
|
8
|
+
>
|
|
9
|
+
<path d="M5.35545 2.06745C5.24149 1.72556 4.7579 1.72556 4.64394 2.06745L4.05898 3.82232C4.02166 3.93429 3.9338 4.02215 3.82184 4.05948L2.06694 4.64459C1.72506 4.75858 1.72509 5.24217 2.06699 5.3561L3.82179 5.9409C3.93378 5.97822 4.02166 6.06609 4.05899 6.17808L4.64394 7.93291C4.7579 8.2748 5.24149 8.2748 5.35545 7.93291L5.9404 6.17806C5.97773 6.06608 6.06559 5.97821 6.17757 5.94089L7.93242 5.35594C8.27431 5.24198 8.27431 4.75839 7.93242 4.64442L6.17757 4.05947C6.06559 4.02215 5.97773 3.93428 5.9404 3.8223L5.35545 2.06745Z" fill="currentColor"/>
|
|
10
|
+
<path d="M17.9632 3.23614C17.8026 2.80788 17.1968 2.80788 17.0362 3.23614L16.0787 5.78951C16.0285 5.92337 15.9229 6.02899 15.789 6.07918L13.2356 7.0367C12.8074 7.19729 12.8074 7.80307 13.2356 7.96366L15.789 8.92118C15.9229 8.97138 16.0285 9.077 16.0787 9.21085L17.0362 11.7642C17.1968 12.1925 17.8026 12.1925 17.9632 11.7642L18.9207 9.21086C18.9709 9.077 19.0765 8.97138 19.2104 8.92118L21.7637 7.96366C22.192 7.80307 22.192 7.1973 21.7637 7.0367L19.2104 6.07918C19.0765 6.02899 18.9709 5.92337 18.9207 5.78951L17.9632 3.23614Z" fill="currentColor"/>
|
|
11
|
+
<path d="M9.30058 7.82012C9.54712 7.1791 10.454 7.1791 10.7006 7.82012L12.3809 12.189C12.4571 12.3871 12.6136 12.5436 12.8117 12.6198L17.1806 14.3001C17.8216 14.5466 17.8216 15.4536 17.1806 15.7001L12.8117 17.3804C12.6136 17.4566 12.4571 17.6131 12.3809 17.8112L10.7006 22.1801C10.454 22.8211 9.54712 22.8211 9.30058 22.1801L7.62024 17.8112C7.54406 17.6131 7.38754 17.4566 7.18947 17.3804L2.82061 15.7001C2.17959 15.4536 2.17959 14.5466 2.82061 14.3001L7.18947 12.6198C7.38754 12.5436 7.54406 12.3871 7.62024 12.189L9.30058 7.82012Z" fill="currentColor"/>
|
|
12
|
+
|
|
13
|
+
</symbol>
|
|
14
|
+
|
|
15
|
+
<symbol
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
viewBox="0 0 24 24"
|
|
19
|
+
id="${de}/image"
|
|
20
|
+
>
|
|
21
|
+
<path d="M3 16.5V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V6C21 4.34315 19.6569 3 18 3L17.999 5C18.5513 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V16.5H3Z" fill="currentColor"/>
|
|
22
|
+
<path d="M13.0982 0.884877C12.9734 0.568323 12.5254 0.568322 12.4005 0.884876L11.7485 2.53819C11.7104 2.63483 11.6339 2.71134 11.5372 2.74945L9.8839 3.40151C9.56735 3.52636 9.56734 3.97436 9.8839 4.09921L11.5372 4.75126C11.6339 4.78938 11.7104 4.86588 11.7485 4.96253L12.4005 6.61584C12.5254 6.93239 12.9734 6.9324 13.0982 6.61584L13.7503 4.96253C13.7884 4.86588 13.8649 4.78938 13.9616 4.75126L15.6149 4.09921C15.9314 3.97436 15.9314 3.52636 15.6149 3.40151L13.9616 2.74945C13.8649 2.71134 13.7884 2.63483 13.7503 2.53819L13.0982 0.884877Z" fill="currentColor"/>
|
|
23
|
+
<path d="M6.40053 5.38488C6.52538 5.06832 6.97338 5.06832 7.09823 5.38488L8.17455 8.11392C8.21267 8.21057 8.28917 8.28707 8.38582 8.32519L11.1149 9.40151C11.4314 9.52636 11.4314 9.97436 11.1149 10.0992L8.38582 11.1755C8.28917 11.2136 8.21267 11.2901 8.17455 11.3868L7.09823 14.1158C6.97338 14.4324 6.52538 14.4324 6.40053 14.1158L5.32421 11.3868C5.2861 11.2901 5.20959 11.2136 5.11295 11.1755L2.3839 10.0992C2.06735 9.97436 2.06735 9.52636 2.3839 9.40151L5.11295 8.32519C5.20959 8.28707 5.2861 8.21057 5.32421 8.11392L6.40053 5.38488Z" fill="currentColor"/>
|
|
24
|
+
<path d="M18.9994 16.5008V18.0004C18.9994 18.5526 18.5517 19.0004 17.9994 19.0004H9.33302L14.3753 11.4369C14.6722 10.9916 15.3266 10.9916 15.6234 11.4369L18.9994 16.5008Z" fill="currentColor"/>
|
|
25
|
+
|
|
26
|
+
</symbol>
|
|
27
|
+
<symbol
|
|
28
|
+
fill="none"
|
|
29
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
30
|
+
viewBox="0 0 24 24"
|
|
31
|
+
id="${de}/video"
|
|
32
|
+
>
|
|
33
|
+
<path d="M6 3C4.34315 3 3 4.34315 3 6V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V16.5H19V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5V3Z" fill="currentColor"/>
|
|
34
|
+
<path d="M10.9025 0.8839C11.0273 0.567345 11.4753 0.567346 11.6002 0.883901L12.2522 2.53721C12.2904 2.63386 12.3669 2.71036 12.4635 2.74848L14.1168 3.40053C14.4334 3.52538 14.4334 3.97338 14.1168 4.09823L12.4635 4.75029C12.3669 4.7884 12.2904 4.86491 12.2522 4.96155L11.6002 6.61486C11.4753 6.93142 11.0273 6.93142 10.9025 6.61486L10.2504 4.96155C10.2123 4.86491 10.1358 4.7884 10.0392 4.75029L8.38585 4.09823C8.0693 3.97338 8.0693 3.52538 8.38585 3.40053L10.0392 2.74848C10.1358 2.71036 10.2123 2.63386 10.2504 2.53721L10.9025 0.8839Z" fill="currentColor"/>
|
|
35
|
+
<path d="M18.9019 3.3845C19.0267 3.06795 19.4747 3.06795 19.5996 3.3845L20.6759 6.11355C20.714 6.2102 20.7905 6.2867 20.8872 6.32482L23.6162 7.40114C23.9328 7.52598 23.9328 7.97399 23.6162 8.09883L20.8872 9.17515C20.7905 9.21327 20.714 9.28977 20.6759 9.38642L19.5996 12.1155C19.4747 12.432 19.0267 12.432 18.9019 12.1155L17.8255 9.38642C17.7874 9.28977 17.7109 9.21327 17.6143 9.17515L14.8852 8.09883C14.5687 7.97399 14.5687 7.52598 14.8852 7.40114L17.6143 6.32482C17.7109 6.2867 17.7874 6.2102 17.8255 6.11355L18.9019 3.3845Z" fill="currentColor"/>
|
|
36
|
+
<path d="M14.9994 13.2862C15.5089 12.8859 15.5089 12.1141 14.9995 11.7137L10.618 8.27047C9.96188 7.75485 9.00011 8.22225 9.00011 9.05673L9.00011 15.9429C9.00011 16.7773 9.96185 17.2448 10.618 16.7292L14.9994 13.2862Z" fill="currentColor"/>
|
|
37
|
+
</symbol>
|
|
38
|
+
<symbol
|
|
39
|
+
fill="none"
|
|
40
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
41
|
+
viewBox="0 0 24 24"
|
|
42
|
+
id="${de}/audio"
|
|
43
|
+
>
|
|
44
|
+
<path d="M6 3.80273C4.2066 4.84016 3 6.77919 3 9.00004V12.8153C3 15.931 5.39501 18.4873 8.44444 18.7436V20.9645C8.44444 22.2198 9.89427 22.9198 10.8773 22.1392L15.1265 18.7647H15.5C17.8285 18.7647 19.8472 17.4384 20.8417 15.5H18.4187C17.6889 16.2784 16.6512 16.7647 15.5 16.7647H14.9522C14.6134 16.7647 14.2846 16.8794 14.0193 17.0901L10.4444 19.929V18.2597C10.4444 17.4341 9.77513 16.7647 8.9495 16.7647C7.80494 16.7647 6.77409 16.2779 6.05276 15.5H6V15.4419C5.37798 14.7439 5 13.8237 5 12.8153V9.00004C5 7.98559 5.37764 7.05935 6 6.35422V3.80273Z" fill="currentColor"/>
|
|
45
|
+
<path d="M11.6002 1.8839C11.4753 1.56735 11.0273 1.56735 10.9025 1.8839L10.2504 3.53721C10.2123 3.63386 10.1358 3.71036 10.0392 3.74848L8.38585 4.40053C8.0693 4.52538 8.0693 4.97338 8.38585 5.09823L10.0392 5.75029C10.1358 5.7884 10.2123 5.86491 10.2504 5.96155L10.9025 7.61486C11.0273 7.93142 11.4753 7.93142 11.6002 7.61486L12.2522 5.96155C12.2904 5.86491 12.3669 5.7884 12.4635 5.75029L14.1168 5.09823C14.4334 4.97338 14.4334 4.52538 14.1168 4.40053L12.4635 3.74848C12.3669 3.71036 12.2904 3.63386 12.2522 3.53721L11.6002 1.8839Z" fill="currentColor"/>
|
|
46
|
+
<path d="M19.5996 4.3845C19.4747 4.06795 19.0267 4.06795 18.9019 4.3845L17.8255 7.11355C17.7874 7.2102 17.7109 7.2867 17.6143 7.32482L14.8852 8.40114C14.5687 8.52598 14.5687 8.97399 14.8852 9.09883L17.6143 10.1752C17.7109 10.2133 17.7874 10.2898 17.8255 10.3864L18.9019 13.1155C19.0267 13.432 19.4747 13.432 19.5996 13.1155L20.6759 10.3864C20.714 10.2898 20.7905 10.2133 20.8872 10.1752L23.6162 9.09883C23.9328 8.97399 23.9328 8.52598 23.6162 8.40114L20.8872 7.32482C20.7905 7.2867 20.714 7.2102 20.6759 7.11355L19.5996 4.3845Z" fill="currentColor"/>
|
|
47
|
+
</symbol>
|
|
48
|
+
<symbol
|
|
49
|
+
fill="none"
|
|
50
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
51
|
+
viewBox="0 0 24 24"
|
|
52
|
+
id="@imgly/MixingPlate"
|
|
53
|
+
>
|
|
54
|
+
<path d="M9.75 9C10.5784 9 11.25 8.32843 11.25 7.5C11.25 6.67157 10.5784 6 9.75 6C8.92157 6 8.25 6.67157 8.25 7.5C8.25 8.32843 8.92157 9 9.75 9Z" fill="currentColor"/>
|
|
55
|
+
<path d="M7 13C7.82843 13 8.5 12.3284 8.5 11.5C8.5 10.6716 7.82843 10 7 10C6.17157 10 5.5 10.6716 5.5 11.5C5.5 12.3284 6.17157 13 7 13Z" fill="currentColor"/>
|
|
56
|
+
<path d="M15.75 7.5C15.75 8.32843 15.0784 9 14.25 9C13.4216 9 12.75 8.32843 12.75 7.5C12.75 6.67157 13.4216 6 14.25 6C15.0784 6 15.75 6.67157 15.75 7.5Z" fill="currentColor"/>
|
|
57
|
+
<path d="M17 13C17.8284 13 18.5 12.3284 18.5 11.5C18.5 10.6716 17.8284 10 17 10C16.1716 10 15.5 10.6716 15.5 11.5C15.5 12.3284 16.1716 13 17 13Z" fill="currentColor"/>
|
|
58
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.26309 2.77709C10.6681 1.77921 13.4829 1.7322 15.9209 2.64297C18.1572 3.47923 20.0876 5.09285 21.1766 7.28598C22.3395 9.62772 22.4889 13.1077 20.3864 15.2982C19.2693 16.4621 17.7657 16.9982 16.0026 16.9997C15.7897 16.9997 15.5555 16.9864 15.3497 16.9745C15.309 16.9722 15.2694 16.9699 15.2313 16.9679C14.9817 16.9542 14.761 16.9455 14.5569 16.9539C14.124 16.9718 13.9598 17.0612 13.89 17.1324C13.718 17.3081 13.6946 17.6672 13.8854 17.8895C14.2899 18.3608 14.5016 18.9277 14.5016 19.5497C14.5016 20.2206 14.3086 20.9011 13.7542 21.3896C13.2471 21.837 12.6082 21.9997 11.9635 21.9997C10.6049 21.9997 9.31155 21.7367 8.0934 21.2067C6.89058 20.6831 5.84501 19.9687 4.94363 19.0666C4.04281 18.1651 3.31836 17.107 2.79369 15.8978C1.72761 13.4409 1.72662 10.5261 2.81247 8.07034C3.88024 5.65548 5.84206 3.78161 8.26309 2.77709ZM15.2207 4.51639C13.2556 3.78239 10.9651 3.82132 9.02956 4.62439C7.06888 5.43791 5.49559 6.94785 4.64163 8.87914C3.78373 10.8194 3.78253 13.1522 4.62841 15.1017C5.05312 16.0805 5.63511 16.9291 6.35838 17.6529C7.08102 18.3761 7.91671 18.9484 8.89123 19.3728C9.8492 19.7895 10.87 19.9997 11.9635 19.9997C12.2815 19.9997 12.394 19.9225 12.431 19.8899L12.4319 19.8891C12.4367 19.8849 12.4487 19.8743 12.4631 19.8359C12.4799 19.7911 12.5016 19.7024 12.5016 19.5497C12.5016 19.4091 12.4633 19.3034 12.3677 19.192C11.5353 18.222 11.5272 16.6868 12.4611 15.7331C13.0741 15.1071 13.8844 14.98 14.4745 14.9556C14.7819 14.943 15.085 14.9568 15.3409 14.9709C15.3906 14.9736 15.4379 14.9763 15.4832 14.9788C15.6876 14.9904 15.8508 14.9997 16.0009 14.9997C17.3405 14.9986 18.2792 14.6054 18.9435 13.9133C20.2633 12.5382 20.3186 10.055 19.3853 8.1755C18.5436 6.48051 17.0293 5.19281 15.2207 4.51639Z" fill="currentColor"/>
|
|
59
|
+
|
|
60
|
+
</symbol>
|
|
61
|
+
</svg>
|
|
62
|
+
`;var Qe={ImageUrl:Kt,StyleTransfer:io};var oo=`
|
|
63
|
+
<svg>
|
|
64
|
+
<symbol
|
|
65
|
+
fill="none"
|
|
66
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
67
|
+
viewBox="0 0 24 24"
|
|
68
|
+
id="@imgly/plugin/formats/ratioFree"
|
|
69
|
+
>
|
|
70
|
+
<path d="M7 6C6.44772 6 6 6.44772 6 7V9.22222H4V7C4 5.34315 5.34315 4 7 4H9.22222V6H7Z" fill="currentColor"/>
|
|
71
|
+
<path d="M17 6H14.7778V4H17C18.6569 4 20 5.34315 20 7V9.22222H18V7C18 6.44772 17.5523 6 17 6Z" fill="currentColor"/>
|
|
72
|
+
<path d="M6 14.7778V17C6 17.5523 6.44772 18 7 18H9.22222V20H7C5.34315 20 4 18.6569 4 17V14.7778H6Z" fill="currentColor"/>
|
|
73
|
+
<path d="M18 17V14.7778H20V17C20 18.6569 18.6569 20 17 20H14.7778V18H17C17.5523 18 18 17.5523 18 17Z" fill="currentColor"/>
|
|
74
|
+
</symbol>
|
|
75
|
+
<symbol
|
|
76
|
+
fill="none"
|
|
77
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
78
|
+
viewBox="0 0 24 24"
|
|
79
|
+
id="@imgly/plugin/formats/ratio4by3"
|
|
80
|
+
>
|
|
81
|
+
<path d="M6.5 13H8V15H10V16.5H6.5V13Z" fill="currentColor"/>
|
|
82
|
+
<path d="M14 9V7.5H17.5V11H16V9H14Z" fill="currentColor"/>
|
|
83
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 4C4.34315 4 3 5.34315 3 7V17C3 18.6569 4.34315 20 6 20H18C19.6569 20 21 18.6569 21 17V7C21 5.34315 19.6569 4 18 4H6ZM5 7C5 6.44772 5.44772 6 6 6H18C18.5523 6 19 6.44772 19 7V17C19 17.5523 18.5523 18 18 18H6C5.44772 18 5 17.5523 5 17V7Z" fill="currentColor"/>
|
|
84
|
+
</symbol>
|
|
85
|
+
<symbol
|
|
86
|
+
fill="none"
|
|
87
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
88
|
+
viewBox="0 0 24 24"
|
|
89
|
+
id="@imgly/plugin/formats/ratio16by9"
|
|
90
|
+
>
|
|
91
|
+
<path d="M4.5 13H6V15H8V16.5H4.5V13Z" fill="currentColor"/>
|
|
92
|
+
<path d="M16 9V7.5H19.5V11H18V9H16Z" fill="currentColor"/>
|
|
93
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4C2.34315 4 1 5.34315 1 7V17C1 18.6569 2.34315 20 4 20H20C21.6569 20 23 18.6569 23 17V7C23 5.34315 21.6569 4 20 4H4ZM3 7C3 6.44772 3.44772 6 4 6H20C20.5523 6 21 6.44772 21 7V17C21 17.5523 20.5523 18 20 18H4C3.44772 18 3 17.5523 3 17V7Z" fill="currentColor"/>
|
|
94
|
+
</symbol>
|
|
95
|
+
<symbol
|
|
96
|
+
fill="none"
|
|
97
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
98
|
+
viewBox="0 0 24 24"
|
|
99
|
+
id="@imgly/plugin/formats/ratio9by16"
|
|
100
|
+
>
|
|
101
|
+
<path d="M7.5 16H9V18H11V19.5H7.5V16Z" fill="currentColor"/>
|
|
102
|
+
<path d="M13 6V4.5H16.5V8H15V6H13Z" fill="currentColor"/>
|
|
103
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 20C4 21.6569 5.34315 23 7 23H17C18.6569 23 20 21.6569 20 20V4C20 2.34315 18.6569 1 17 1H7C5.34315 1 4 2.34315 4 4V20ZM7 21C6.44772 21 6 20.5523 6 20V4C6 3.44772 6.44772 3 7 3H17C17.5523 3 18 3.44772 18 4V20C18 20.5523 17.5523 21 17 21H7Z" fill="currentColor"/>
|
|
104
|
+
</symbol>
|
|
105
|
+
<symbol
|
|
106
|
+
fill="none"
|
|
107
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
108
|
+
viewBox="0 0 24 24"
|
|
109
|
+
id="@imgly/plugin/formats/ratio3by4"
|
|
110
|
+
>
|
|
111
|
+
<path d="M11 17.5V16H9V14H7.5V17.5H11Z" fill="currentColor"/>
|
|
112
|
+
<path d="M15 10H16.5V6.5H13V8H15V10Z" fill="currentColor"/>
|
|
113
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 18C20 19.6569 18.6569 21 17 21H7C5.34315 21 4 19.6569 4 18V6C4 4.34315 5.34315 3 7 3H17C18.6569 3 20 4.34315 20 6V18ZM17 19C17.5523 19 18 18.5523 18 18V6C18 5.44772 17.5523 5 17 5H7C6.44771 5 6 5.44771 6 6V18C6 18.5523 6.44772 19 7 19H17Z" fill="currentColor"/>
|
|
114
|
+
</symbol>
|
|
115
|
+
<symbol
|
|
116
|
+
fill="none"
|
|
117
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
118
|
+
viewBox="0 0 24 24"
|
|
119
|
+
id="@imgly/plugin/formats/ratio1by1"
|
|
120
|
+
>
|
|
121
|
+
<path d="M17.4142 8.00009L16 6.58587L14.2929 8.29298L15.7071 9.70719L17.4142 8.00009Z" fill="currentColor"/>
|
|
122
|
+
<path d="M13.0404 12.3739L15.0404 10.3739L13.6262 8.95965L11.6262 10.9596L13.0404 12.3739Z" fill="currentColor"/>
|
|
123
|
+
<path d="M10.3737 15.0405L12.3737 13.0405L10.9595 11.6263L8.95953 13.6263L10.3737 15.0405Z" fill="currentColor"/>
|
|
124
|
+
<path d="M9.70708 15.7072L8.29286 14.293L6.58576 16.0001L7.99997 17.4143L9.70708 15.7072Z" fill="currentColor"/>
|
|
125
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 4C5.34315 4 4 5.34315 4 7V17C4 18.6569 5.34315 20 7 20H17C18.6569 20 20 18.6569 20 17V7C20 5.34315 18.6569 4 17 4H7ZM6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V17C18 17.5523 17.5523 18 17 18H7C6.44772 18 6 17.5523 6 17V7Z" fill="currentColor"/>
|
|
126
|
+
</symbol>
|
|
127
|
+
</svg>
|
|
128
|
+
`;var ao=typeof global=="object"&&global&&global.Object===Object&&global,dt=ao,so=typeof self=="object"&&self&&self.Object===Object&&self,lo=dt||so||Function("return this")(),C=lo,uo=C.Symbol,O=uo,ct=Object.prototype,co=ct.hasOwnProperty,po=ct.toString,Q=O?O.toStringTag:void 0;function go(e){var t=co.call(e,Q),r=e[Q];try{e[Q]=void 0;var i=!0}catch{}var n=po.call(e);return i&&(t?e[Q]=r:delete e[Q]),n}var mo=go,fo=Object.prototype,ho=fo.toString;function yo(e){return ho.call(e)}var bo=yo,vo="[object Null]",wo="[object Undefined]",Ye=O?O.toStringTag:void 0;function xo(e){return e==null?e===void 0?wo:vo:Ye&&Ye in Object(e)?mo(e):bo(e)}var X=xo;function Io(e){return e!=null&&typeof e=="object"}var Ae=Io,Kl=Array.isArray;function ko(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pt=ko,So="[object AsyncFunction]",Ao="[object Function]",Co="[object GeneratorFunction]",Po="[object Proxy]";function Eo(e){if(!pt(e))return!1;var t=X(e);return t==Ao||t==Co||t==So||t==Po}var Mo=Eo,To=C["__core-js_shared__"],be=To,We=function(){var e=/[^.]+$/.exec(be&&be.keys&&be.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jo(e){return!!We&&We in e}var _o=jo,Lo=Function.prototype,Vo=Lo.toString;function Do(e){if(e!=null){try{return Vo.call(e)}catch{}try{return e+""}catch{}}return""}var M=Do,$o=/[\\^$.*+?()[\]{}|]/g,Ro=/^\[object .+?Constructor\]$/,Oo=Function.prototype,Fo=Object.prototype,No=Oo.toString,zo=Fo.hasOwnProperty,Uo=RegExp("^"+No.call(zo).replace($o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bo(e){if(!pt(e)||_o(e))return!1;var t=Mo(e)?Uo:Ro;return t.test(M(e))}var Go=Bo;function Ho(e,t){return e?.[t]}var qo=Ho;function Ko(e,t){var r=qo(e,t);return Go(r)?r:void 0}var F=Ko,Zo=F(C,"WeakMap"),we=Zo;function Qo(e,t){return e===t||e!==e&&t!==t}var Yo=Qo,Wo=9007199254740991;function Jo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wo}var Xo=Jo;var Zl=Object.prototype;var ea="[object Arguments]";function ta(e){return Ae(e)&&X(e)==ea}var Je=ta,gt=Object.prototype,ra=gt.hasOwnProperty,ia=gt.propertyIsEnumerable,Ql=Je(function(){return arguments}())?Je:function(e){return Ae(e)&&ra.call(e,"callee")&&!ia.call(e,"callee")};var mt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xe=mt&&typeof module=="object"&&module&&!module.nodeType&&module,na=Xe&&Xe.exports===mt,et=na?C.Buffer:void 0,Yl=et?et.isBuffer:void 0;var oa="[object Arguments]",aa="[object Array]",sa="[object Boolean]",la="[object Date]",ua="[object Error]",da="[object Function]",ca="[object Map]",pa="[object Number]",ga="[object Object]",ma="[object RegExp]",fa="[object Set]",ha="[object String]",ya="[object WeakMap]",ba="[object ArrayBuffer]",va="[object DataView]",wa="[object Float32Array]",xa="[object Float64Array]",Ia="[object Int8Array]",ka="[object Int16Array]",Sa="[object Int32Array]",Aa="[object Uint8Array]",Ca="[object Uint8ClampedArray]",Pa="[object Uint16Array]",Ea="[object Uint32Array]",m={};m[wa]=m[xa]=m[Ia]=m[ka]=m[Sa]=m[Aa]=m[Ca]=m[Pa]=m[Ea]=!0;m[oa]=m[aa]=m[ba]=m[sa]=m[va]=m[la]=m[ua]=m[da]=m[ca]=m[pa]=m[ga]=m[ma]=m[fa]=m[ha]=m[ya]=!1;function Ma(e){return Ae(e)&&Xo(e.length)&&!!m[X(e)]}var Ta=Ma;function ja(e){return function(t){return e(t)}}var _a=ja,ft=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Y=ft&&typeof module=="object"&&module&&!module.nodeType&&module,La=Y&&Y.exports===ft,ve=La&&dt.process,Va=function(){try{var e=Y&&Y.require&&Y.require("util").types;return e||ve&&ve.binding&&ve.binding("util")}catch{}}(),tt=Va,rt=tt&&tt.isTypedArray,Wl=rt?_a(rt):Ta;var Da=Object.prototype,Jl=Da.hasOwnProperty;function $a(e,t){return function(r){return e(t(r))}}var Ra=$a,Xl=Ra(Object.keys,Object);var Oa=Object.prototype,eu=Oa.hasOwnProperty;var Fa=F(Object,"create"),W=Fa;function Na(){this.__data__=W?W(null):{},this.size=0}var za=Na;function Ua(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ba=Ua,Ga="__lodash_hash_undefined__",Ha=Object.prototype,qa=Ha.hasOwnProperty;function Ka(e){var t=this.__data__;if(W){var r=t[e];return r===Ga?void 0:r}return qa.call(t,e)?t[e]:void 0}var Za=Ka,Qa=Object.prototype,Ya=Qa.hasOwnProperty;function Wa(e){var t=this.__data__;return W?t[e]!==void 0:Ya.call(t,e)}var Ja=Wa,Xa="__lodash_hash_undefined__";function es(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=W&&t===void 0?Xa:t,this}var ts=es;function N(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}N.prototype.clear=za;N.prototype.delete=Ba;N.prototype.get=Za;N.prototype.has=Ja;N.prototype.set=ts;var it=N;function rs(){this.__data__=[],this.size=0}var is=rs;function ns(e,t){for(var r=e.length;r--;)if(Yo(e[r][0],t))return r;return-1}var oe=ns,os=Array.prototype,as=os.splice;function ss(e){var t=this.__data__,r=oe(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():as.call(t,r,1),--this.size,!0}var ls=ss;function us(e){var t=this.__data__,r=oe(t,e);return r<0?void 0:t[r][1]}var ds=us;function cs(e){return oe(this.__data__,e)>-1}var ps=cs;function gs(e,t){var r=this.__data__,i=oe(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var ms=gs;function z(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}z.prototype.clear=is;z.prototype.delete=ls;z.prototype.get=ds;z.prototype.has=ps;z.prototype.set=ms;var ae=z,fs=F(C,"Map"),J=fs;function hs(){this.size=0,this.__data__={hash:new it,map:new(J||ae),string:new it}}var ys=hs;function bs(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var vs=bs;function ws(e,t){var r=e.__data__;return vs(t)?r[typeof t=="string"?"string":"hash"]:r.map}var se=ws;function xs(e){var t=se(this,e).delete(e);return this.size-=t?1:0,t}var Is=xs;function ks(e){return se(this,e).get(e)}var Ss=ks;function As(e){return se(this,e).has(e)}var Cs=As;function Ps(e,t){var r=se(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}var Es=Ps;function U(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}U.prototype.clear=ys;U.prototype.delete=Is;U.prototype.get=Ss;U.prototype.has=Cs;U.prototype.set=Es;var ht=U;function Ms(){this.__data__=new ae,this.size=0}var Ts=Ms;function js(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var _s=js;function Ls(e){return this.__data__.get(e)}var Vs=Ls;function Ds(e){return this.__data__.has(e)}var $s=Ds,Rs=200;function Os(e,t){var r=this.__data__;if(r instanceof ae){var i=r.__data__;if(!J||i.length<Rs-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ht(i)}return r.set(e,t),this.size=r.size,this}var Fs=Os;function ee(e){var t=this.__data__=new ae(e);this.size=t.size}ee.prototype.clear=Ts;ee.prototype.delete=_s;ee.prototype.get=Vs;ee.prototype.has=$s;ee.prototype.set=Fs;var Ns=Object.prototype,tu=Ns.propertyIsEnumerable;var zs=F(C,"DataView"),xe=zs,Us=F(C,"Promise"),Ie=Us,Bs=F(C,"Set"),ke=Bs,nt="[object Map]",Gs="[object Object]",ot="[object Promise]",at="[object Set]",st="[object WeakMap]",lt="[object DataView]",Hs=M(xe),qs=M(J),Ks=M(Ie),Zs=M(ke),Qs=M(we),R=X;(xe&&R(new xe(new ArrayBuffer(1)))!=lt||J&&R(new J)!=nt||Ie&&R(Ie.resolve())!=ot||ke&&R(new ke)!=at||we&&R(new we)!=st)&&(R=function(e){var t=X(e),r=t==Gs?e.constructor:void 0,i=r?M(r):"";if(i)switch(i){case Hs:return lt;case qs:return nt;case Ks:return ot;case Zs:return at;case Qs:return st}return t});var ru=C.Uint8Array;var Ys="__lodash_hash_undefined__";function Ws(e){return this.__data__.set(e,Ys),this}var Js=Ws;function Xs(e){return this.__data__.has(e)}var el=Xs;function Se(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ht;++t<r;)this.add(e[t])}Se.prototype.add=Se.prototype.push=Js;Se.prototype.has=el;var ut=O?O.prototype:void 0,iu=ut?ut.valueOf:void 0;var tl=Object.prototype,nu=tl.hasOwnProperty;var rl=Object.prototype,ou=rl.hasOwnProperty;var au=new RegExp(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"i"),su=new RegExp(/[A-Fa-f0-9]{1}/,"g"),lu=new RegExp(/[A-Fa-f0-9]{2}/,"g");async function il(e,t){if(e.startsWith("buffer:")){let r=await t.editor.getMimeType(e),i=t.editor.getBufferLength(e),n=t.editor.getBufferData(e,0,i),o=new Uint8Array(n),a=new Blob([o],{type:r});return URL.createObjectURL(a)}else return e}async function P(e,t){let r=await il(e,t);return new Promise((i,n)=>{let o=new Image;o.onload=()=>{i({width:o.width,height:o.height})},o.onerror=n,o.src=r})}var b={Formats:oo};var yt={openapi:"3.0.0",info:{title:"Veo 3.1 API",version:"1.0.0",description:"Google Veo 3.1 video generation via Runware"},components:{schemas:{Veo31Text2VideoInput:{title:"Veo31Text2VideoInput",type:"object",properties:{prompt:{title:"Prompt",type:"string",description:"Text description for video generation",minLength:2,maxLength:3e3,"x-imgly-builder":{component:"TextArea"}},format:{title:"Format",type:"string",enum:["1280x720","720x1280","1920x1080","1080x1920"],default:"1280x720",description:"Output resolution and aspect ratio","x-imgly-enum-labels":{"1280x720":"Landscape HD (1280\xD7720)","720x1280":"Portrait HD (720\xD71280)","1920x1080":"Landscape Full HD (1920\xD71080)","1080x1920":"Portrait Full HD (1080\xD71920)"},"x-imgly-enum-icons":{"1280x720":"@imgly/plugin/formats/ratio16by9","720x1280":"@imgly/plugin/formats/ratio9by16","1920x1080":"@imgly/plugin/formats/ratio16by9","1080x1920":"@imgly/plugin/formats/ratio9by16"}},generate_audio:{title:"Generate Audio",type:"boolean",default:!0,description:"Generate native audio with the video"}},"x-fal-order-properties":["prompt","format","generate_audio"],required:["prompt"]}}},paths:{}};function ol(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.floor(Math.random()*16);return(e==="x"?t:t&3|8).toString(16)})}function al(e){return new Promise(t=>{setTimeout(t,e)})}function bt(e,t){async function r(i,n){let o=Date.now();for(;Date.now()-o<6e5;){if(n?.aborted)throw new Error("Video generation aborted");let a=[{taskType:"getResponse",taskUUID:i}],s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",...t},body:JSON.stringify(a),signal:n});if(!s.ok){let l=await s.text();throw new Error(`Runware API polling error: ${s.status} - ${l}`)}let u=await s.json();if(u.errors!=null&&u.errors.length>0){let l=u.errors[0];throw new Error(`Runware API error: ${l.errorMessage}`)}if(u.error!=null)throw new Error(`Runware API error: ${u.error.errorMessage??u.error}`);let p=u.data;if(p!=null&&Array.isArray(p)&&p.length>0){let l=p.find(d=>d.taskType==="videoInference"&&d.taskUUID===i);if(l!=null){if(l.status==="success"&&l.videoURL)return l;if(l.status==="failed")throw new Error(l.errorMessage??"Video generation failed")}}await al(3e3)}throw new Error("Video generation timed out")}return{videoInference:async(i,n)=>{let o=ol(),a=[{taskType:"videoInference",taskUUID:o,model:i.model,deliveryMethod:"async",...i.positivePrompt!=null&&{positivePrompt:i.positivePrompt},...i.width!=null&&{width:i.width},...i.height!=null&&{height:i.height},outputType:i.outputType??"URL",outputFormat:i.outputFormat??"MP4",numberResults:i.numberResults??1,...i.negativePrompt!=null&&{negativePrompt:i.negativePrompt},...i.duration!=null&&{duration:i.duration},...i.fps!=null&&{fps:i.fps},...i.seed!=null&&{seed:i.seed},...i.frameImages!=null&&{frameImages:i.frameImages},...i.providerSettings!=null&&{providerSettings:i.providerSettings}}],s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",...t},body:JSON.stringify(a),signal:n});if(!s.ok){let w=await s.text();throw new Error(`Runware API error: ${s.status} - ${w}`)}let u=await s.json();if(u.errors!=null&&u.errors.length>0){let w=u.errors[0];throw new Error(`Runware API error: ${w.errorMessage}`)}if(u.error!=null)throw new Error(`Runware API error: ${u.error.errorMessage??u.error}`);let p=u.data;if(p==null||!Array.isArray(p))throw new Error("Invalid response from Runware API: missing data array");if(p.find(w=>w.taskType==="videoInference"&&w.taskUUID===o)==null)throw new Error("Video generation task was not acknowledged");return[await r(o,n)]}}}async function wt(e,t){if(e!=null){if(e.startsWith("blob:")){let i=await(await fetch(e)).blob();return vt(i)}if(t!=null&&e.startsWith("buffer:")){let r=await t.engine.editor.getMimeType(e),i=t.engine.editor.getBufferLength(e),n=t.engine.editor.getBufferData(e,0,i),o=new Uint8Array(n),a=new Blob([o],{type:r});return vt(a)}return e}}function vt(e){return new Promise((t,r)=>{let i=new FileReader;i.onloadend=()=>t(i.result),i.onerror=r,i.readAsDataURL(e)})}function sl(e,t){let r=e.middleware??t.middlewares??t.middleware??[],i=null,n={id:e.providerId,kind:"video",name:e.name,configuration:t,initialize:async o=>{i=bt(t.proxyUrl,e.headers),e.initialize?.(o)},input:{quickActions:{supported:Ze(e.supportedQuickActions??{},t.supportedQuickActions)},panel:{type:"schema",document:e.schema,inputReference:e.inputReference,includeHistoryLibrary:!0,orderExtensionKeyword:"x-fal-order-properties",renderCustomProperty:{...e.cesdk!=null?Qe.ImageUrl(e.providerId,{cesdk:e.cesdk}):{},...e.renderCustomProperty},getBlockInput:e.getBlockInput,userFlow:e.useFlow??"placeholder"}},output:{abortable:!0,history:t.history??"@imgly/indexedDB",middleware:r,generate:async(o,{abortSignal:a})=>{if(!i)throw new Error("Provider not initialized");let s=o;if(o.image_url!=null){let l=await wt(o.image_url,e.cesdk);s={...o,image_url:l}}let u=e.mapInput(s),p=await i.videoInference({model:e.modelId,outputType:"URL",outputFormat:"MP4",numberResults:1,...u},a);if(p!=null&&Array.isArray(p)&&p.length>0){let d=p[0]?.videoURL;if(d!=null)return{kind:"video",url:d}}throw console.error("Cannot extract generated video from response:",p),new Error("Cannot find generated video")},generationHintText:"ly.img.ai.video.generation.hint"}};return t.debug&&console.log("Created Provider:",n),n}var v=sl;var ll={"1280x720":{width:1280,height:720},"720x1280":{width:720,height:1280},"1920x1080":{width:1920,height:1080},"1080x1920":{width:1080,height:1920}};function xt(e){return ll[e]??{width:1280,height:720}}function It(e){return async({cesdk:t})=>(y(t,"@imgly/plugin/formats",b.Formats),v({modelId:"google:3@2",providerId:"runware/google/veo-3.1",name:"Veo 3.1",schema:yt,inputReference:"#/components/schemas/Veo31Text2VideoInput",cesdk:t,middleware:e.middlewares??[],getBlockInput:async r=>{let i=xt(r.format??"1280x720");return{video:{width:i.width,height:i.height,duration:8}}},mapInput:r=>{let i=xt(r.format??"1280x720");return{positivePrompt:r.prompt,width:i.width,height:i.height,duration:8,fps:24,providerSettings:{google:{generateAudio:r.generate_audio??!0}}}}},e))}var kt={openapi:"3.0.0",info:{title:"Veo 3.1 Image-to-Video API",version:"1.0.0",description:"Google Veo 3.1 image-to-video generation via Runware"},components:{schemas:{Veo31Image2VideoInput:{title:"Veo31Image2VideoInput",type:"object",properties:{image_url:{title:"Source Image",type:"string",description:"First frame image to animate","x-imgly-builder":{component:"ImageUrl"}},prompt:{title:"Prompt",type:"string",description:"Describe the motion and action for the video",minLength:2,maxLength:3e3,"x-imgly-builder":{component:"TextArea"}},format:{title:"Format",type:"string",enum:["1280x720","720x1280","1920x1080","1080x1920"],default:"1280x720",description:"Output resolution and aspect ratio","x-imgly-enum-labels":{"1280x720":"Landscape HD (1280\xD7720)","720x1280":"Portrait HD (720\xD71280)","1920x1080":"Landscape Full HD (1920\xD71080)","1080x1920":"Portrait Full HD (1080\xD71920)"},"x-imgly-enum-icons":{"1280x720":"@imgly/plugin/formats/ratio16by9","720x1280":"@imgly/plugin/formats/ratio9by16","1920x1080":"@imgly/plugin/formats/ratio16by9","1080x1920":"@imgly/plugin/formats/ratio9by16"}},generate_audio:{title:"Generate Audio",type:"boolean",default:!0,description:"Generate native audio with the video"}},"x-fal-order-properties":["image_url","prompt","format","generate_audio"],required:["image_url"]}}},paths:{}};var dl={"1280x720":{width:1280,height:720},"720x1280":{width:720,height:1280},"1920x1080":{width:1920,height:1080},"1080x1920":{width:1080,height:1920}};function St(e){return dl[e]??{width:1280,height:720}}function cl(e,t){return e>=t?"1280x720":"720x1280"}function At(e){return async({cesdk:t})=>{let r="runware/google/veo-3.1/image2video";return y(t,"@imgly/plugin/formats",b.Formats),t.i18n.setTranslations({en:{[`panel.${k(r)}.imageSelection`]:"Select Image To Animate",[`libraries.${k(r)}.history.label`]:"Generated From Image"}}),v({modelId:"google:3@2",providerId:r,name:"Veo 3.1",schema:kt,inputReference:"#/components/schemas/Veo31Image2VideoInput",cesdk:t,middleware:e.middlewares??[],supportedQuickActions:{"ly.img.createVideo":{mapInput:i=>({image_url:i.uri,prompt:i.prompt??""})}},getBlockInput:async i=>{let{width:n,height:o}=await P(i.image_url,t.engine),a=i.format??cl(n,o),s=St(a);return{video:{width:s.width,height:s.height,duration:8}}},mapInput:i=>{let n=St(i.format??"1280x720");return{positivePrompt:i.prompt??"",width:n.width,height:n.height,frameImages:[{inputImage:i.image_url,frame:"first"}],duration:8,fps:24,providerSettings:{google:{generateAudio:i.generate_audio??!0}}}}},e)}}var Ct={openapi:"3.0.0",info:{title:"Veo 3.1 Fast API",version:"1.0.0",description:"Google Veo 3.1 Fast video generation via Runware"},components:{schemas:{Veo31FastText2VideoInput:{title:"Veo31FastText2VideoInput",type:"object",properties:{prompt:{title:"Prompt",type:"string",description:"Text description for video generation",minLength:2,maxLength:3e3,"x-imgly-builder":{component:"TextArea"}},format:{title:"Format",type:"string",enum:["1280x720","720x1280","1920x1080","1080x1920"],default:"1280x720",description:"Output resolution and aspect ratio","x-imgly-enum-labels":{"1280x720":"Landscape HD (1280\xD7720)","720x1280":"Portrait HD (720\xD71280)","1920x1080":"Landscape Full HD (1920\xD71080)","1080x1920":"Portrait Full HD (1080\xD71920)"},"x-imgly-enum-icons":{"1280x720":"@imgly/plugin/formats/ratio16by9","720x1280":"@imgly/plugin/formats/ratio9by16","1920x1080":"@imgly/plugin/formats/ratio16by9","1080x1920":"@imgly/plugin/formats/ratio9by16"}},generate_audio:{title:"Generate Audio",type:"boolean",default:!0,description:"Generate native audio with the video"}},"x-fal-order-properties":["prompt","format","generate_audio"],required:["prompt"]}}},paths:{}};var gl={"1280x720":{width:1280,height:720},"720x1280":{width:720,height:1280},"1920x1080":{width:1920,height:1080},"1080x1920":{width:1080,height:1920}};function Pt(e){return gl[e]??{width:1280,height:720}}function Et(e){return async({cesdk:t})=>(y(t,"@imgly/plugin/formats",b.Formats),v({modelId:"google:3@3",providerId:"runware/google/veo-3.1-fast",name:"Veo 3.1 Fast",schema:Ct,inputReference:"#/components/schemas/Veo31FastText2VideoInput",cesdk:t,middleware:e.middlewares??[],getBlockInput:async r=>{let i=Pt(r.format??"1280x720");return{video:{width:i.width,height:i.height,duration:8}}},mapInput:r=>{let i=Pt(r.format??"1280x720");return{positivePrompt:r.prompt,width:i.width,height:i.height,duration:8,fps:24,providerSettings:{google:{generateAudio:r.generate_audio??!0}}}}},e))}var Mt={openapi:"3.0.0",info:{title:"Veo 3.1 Fast Image-to-Video API",version:"1.0.0",description:"Google Veo 3.1 Fast image-to-video generation via Runware"},components:{schemas:{Veo31FastImage2VideoInput:{title:"Veo31FastImage2VideoInput",type:"object",properties:{image_url:{title:"Source Image",type:"string",description:"First frame image to animate","x-imgly-builder":{component:"ImageUrl"}},prompt:{title:"Prompt",type:"string",description:"Describe the motion and action for the video",minLength:2,maxLength:3e3,"x-imgly-builder":{component:"TextArea"}},format:{title:"Format",type:"string",enum:["1280x720","720x1280","1920x1080","1080x1920"],default:"1280x720",description:"Output resolution and aspect ratio","x-imgly-enum-labels":{"1280x720":"Landscape HD (1280\xD7720)","720x1280":"Portrait HD (720\xD71280)","1920x1080":"Landscape Full HD (1920\xD71080)","1080x1920":"Portrait Full HD (1080\xD71920)"},"x-imgly-enum-icons":{"1280x720":"@imgly/plugin/formats/ratio16by9","720x1280":"@imgly/plugin/formats/ratio9by16","1920x1080":"@imgly/plugin/formats/ratio16by9","1080x1920":"@imgly/plugin/formats/ratio9by16"}},generate_audio:{title:"Generate Audio",type:"boolean",default:!0,description:"Generate native audio with the video"}},"x-fal-order-properties":["image_url","prompt","format","generate_audio"],required:["image_url"]}}},paths:{}};var fl={"1280x720":{width:1280,height:720},"720x1280":{width:720,height:1280},"1920x1080":{width:1920,height:1080},"1080x1920":{width:1080,height:1920}};function Tt(e){return fl[e]??{width:1280,height:720}}function hl(e,t){return e>=t?"1280x720":"720x1280"}function jt(e){return async({cesdk:t})=>{let r="runware/google/veo-3.1-fast/image2video";return y(t,"@imgly/plugin/formats",b.Formats),t.i18n.setTranslations({en:{[`panel.${k(r)}.imageSelection`]:"Select Image To Animate",[`libraries.${k(r)}.history.label`]:"Generated From Image"}}),v({modelId:"google:3@3",providerId:r,name:"Veo 3.1 Fast",schema:Mt,inputReference:"#/components/schemas/Veo31FastImage2VideoInput",cesdk:t,middleware:e.middlewares??[],supportedQuickActions:{"ly.img.createVideo":{mapInput:i=>({image_url:i.uri,prompt:i.prompt??""})}},getBlockInput:async i=>{let{width:n,height:o}=await P(i.image_url,t.engine),a=i.format??hl(n,o),s=Tt(a);return{video:{width:s.width,height:s.height,duration:8}}},mapInput:i=>{let n=Tt(i.format??"1280x720");return{positivePrompt:i.prompt??"",width:n.width,height:n.height,frameImages:[{inputImage:i.image_url,frame:"first"}],duration:8,fps:24,providerSettings:{google:{generateAudio:i.generate_audio??!0}}}}},e)}}var _t={openapi:"3.0.0",info:{title:"Sora 2 API",version:"1.0.0",description:"OpenAI Sora 2 video generation via Runware"},components:{schemas:{Sora2Text2VideoInput:{title:"Sora2Text2VideoInput",type:"object",properties:{prompt:{title:"Prompt",type:"string",description:"Text description for video generation",minLength:1,maxLength:4e3,"x-imgly-builder":{component:"TextArea"}},format:{title:"Format",type:"string",enum:["1280x720","720x1280"],default:"1280x720",description:"Output resolution and aspect ratio","x-imgly-enum-labels":{"1280x720":"Landscape HD (1280\xD7720)","720x1280":"Portrait HD (720\xD71280)"},"x-imgly-enum-icons":{"1280x720":"@imgly/plugin/formats/ratio16by9","720x1280":"@imgly/plugin/formats/ratio9by16"}},duration:{title:"Duration",type:"string",enum:["4","8","12"],default:"8",description:"Video duration in seconds","x-imgly-enum-labels":{"4":"4 seconds","8":"8 seconds","12":"12 seconds"}}},"x-fal-order-properties":["prompt","format","duration"],required:["prompt"]}}},paths:{}};var bl={"1280x720":{width:1280,height:720},"720x1280":{width:720,height:1280}};function Lt(e){return bl[e]??{width:1280,height:720}}function Vt(e){return async({cesdk:t})=>(y(t,"@imgly/plugin/formats",b.Formats),v({modelId:"openai:3@1",providerId:"runware/openai/sora-2",name:"Sora 2",schema:_t,inputReference:"#/components/schemas/Sora2Text2VideoInput",cesdk:t,middleware:e.middlewares??[],getBlockInput:async r=>{let i=Lt(r.format??"1280x720"),n=parseInt(r.duration??"8",10);return{video:{width:i.width,height:i.height,duration:n}}},mapInput:r=>{let i=Lt(r.format??"1280x720"),n=parseInt(r.duration??"8",10);return{positivePrompt:r.prompt,width:i.width,height:i.height,duration:n}}},e))}var Dt={openapi:"3.0.0",info:{title:"Sora 2 Image-to-Video API",version:"1.0.0",description:"OpenAI Sora 2 image-to-video generation via Runware"},components:{schemas:{Sora2Image2VideoInput:{title:"Sora2Image2VideoInput",type:"object",properties:{image_url:{title:"Source Image",type:"string",description:"First frame image to animate","x-imgly-builder":{component:"ImageUrl"}},prompt:{title:"Prompt",type:"string",description:"Describe the motion and action for the video",minLength:1,maxLength:4e3,"x-imgly-builder":{component:"TextArea"}},format:{title:"Format",type:"string",enum:["1280x720","720x1280"],default:"1280x720",description:"Output resolution and aspect ratio","x-imgly-enum-labels":{"1280x720":"Landscape HD (1280\xD7720)","720x1280":"Portrait HD (720\xD71280)"},"x-imgly-enum-icons":{"1280x720":"@imgly/plugin/formats/ratio16by9","720x1280":"@imgly/plugin/formats/ratio9by16"}},duration:{title:"Duration",type:"string",enum:["4","8","12"],default:"8",description:"Video duration in seconds","x-imgly-enum-labels":{"4":"4 seconds","8":"8 seconds","12":"12 seconds"}}},"x-fal-order-properties":["image_url","prompt","format","duration"],required:["image_url"]}}},paths:{}};var wl={"1280x720":{width:1280,height:720},"720x1280":{width:720,height:1280}};function $t(e){return wl[e]??{width:1280,height:720}}function xl(e,t){return e>=t?"1280x720":"720x1280"}function Rt(e){return async({cesdk:t})=>{let r="runware/openai/sora-2/image2video";return y(t,"@imgly/plugin/formats",b.Formats),t.i18n.setTranslations({en:{[`panel.${k(r)}.imageSelection`]:"Select Image To Animate",[`libraries.${k(r)}.history.label`]:"Generated From Image"}}),v({modelId:"openai:3@1",providerId:r,name:"Sora 2",schema:Dt,inputReference:"#/components/schemas/Sora2Image2VideoInput",cesdk:t,middleware:e.middlewares??[],supportedQuickActions:{"ly.img.createVideo":{mapInput:i=>({image_url:i.uri,prompt:i.prompt??""})}},getBlockInput:async i=>{let{width:n,height:o}=await P(i.image_url,t.engine),a=i.format??xl(n,o),s=$t(a),u=parseInt(i.duration??"8",10);return{video:{width:s.width,height:s.height,duration:u}}},mapInput:i=>{let n=$t(i.format??"1280x720"),o=parseInt(i.duration??"8",10);return{positivePrompt:i.prompt??"",width:n.width,height:n.height,frameImages:[{inputImage:i.image_url,frame:"first"}],duration:o}}},e)}}var Ot={openapi:"3.0.0",info:{title:"Sora 2 Pro API",version:"1.0.0",description:"OpenAI Sora 2 Pro video generation via Runware"},components:{schemas:{Sora2ProText2VideoInput:{title:"Sora2ProText2VideoInput",type:"object",properties:{prompt:{title:"Prompt",type:"string",description:"Text description for video generation",minLength:1,maxLength:4e3,"x-imgly-builder":{component:"TextArea"}},format:{title:"Format",type:"string",enum:["1280x720","720x1280","1792x1024","1024x1792"],default:"1280x720",description:"Output resolution and aspect ratio","x-imgly-enum-labels":{"1280x720":"Landscape HD (1280\xD7720)","720x1280":"Portrait HD (720\xD71280)","1792x1024":"Landscape Wide (1792\xD71024)","1024x1792":"Portrait Tall (1024\xD71792)"},"x-imgly-enum-icons":{"1280x720":"@imgly/plugin/formats/ratio16by9","720x1280":"@imgly/plugin/formats/ratio9by16","1792x1024":"@imgly/plugin/formats/ratio16by9","1024x1792":"@imgly/plugin/formats/ratio9by16"}},duration:{title:"Duration",type:"string",enum:["4","8","12"],default:"8",description:"Video duration in seconds","x-imgly-enum-labels":{"4":"4 seconds","8":"8 seconds","12":"12 seconds"}}},"x-fal-order-properties":["prompt","format","duration"],required:["prompt"]}}},paths:{}};var kl={"1280x720":{width:1280,height:720},"720x1280":{width:720,height:1280},"1792x1024":{width:1792,height:1024},"1024x1792":{width:1024,height:1792}};function Ft(e){return kl[e]??{width:1280,height:720}}function Nt(e){return async({cesdk:t})=>(y(t,"@imgly/plugin/formats",b.Formats),v({modelId:"openai:3@2",providerId:"runware/openai/sora-2-pro",name:"Sora 2 Pro",schema:Ot,inputReference:"#/components/schemas/Sora2ProText2VideoInput",cesdk:t,middleware:e.middlewares??[],getBlockInput:async r=>{let i=Ft(r.format??"1280x720"),n=parseInt(r.duration??"8",10);return{video:{width:i.width,height:i.height,duration:n}}},mapInput:r=>{let i=Ft(r.format??"1280x720"),n=parseInt(r.duration??"8",10);return{positivePrompt:r.prompt,width:i.width,height:i.height,duration:n}}},e))}var zt={openapi:"3.0.0",info:{title:"Sora 2 Pro Image-to-Video API",version:"1.0.0",description:"OpenAI Sora 2 Pro image-to-video generation via Runware"},components:{schemas:{Sora2ProImage2VideoInput:{title:"Sora2ProImage2VideoInput",type:"object",properties:{image_url:{title:"Source Image",type:"string",description:"First frame image to animate","x-imgly-builder":{component:"ImageUrl"}},prompt:{title:"Prompt",type:"string",description:"Describe the motion and action for the video",minLength:1,maxLength:4e3,"x-imgly-builder":{component:"TextArea"}},format:{title:"Format",type:"string",enum:["1280x720","720x1280","1792x1024","1024x1792"],default:"1280x720",description:"Output resolution and aspect ratio","x-imgly-enum-labels":{"1280x720":"Landscape HD (1280\xD7720)","720x1280":"Portrait HD (720\xD71280)","1792x1024":"Landscape Wide (1792\xD71024)","1024x1792":"Portrait Tall (1024\xD71792)"},"x-imgly-enum-icons":{"1280x720":"@imgly/plugin/formats/ratio16by9","720x1280":"@imgly/plugin/formats/ratio9by16","1792x1024":"@imgly/plugin/formats/ratio16by9","1024x1792":"@imgly/plugin/formats/ratio9by16"}},duration:{title:"Duration",type:"string",enum:["4","8","12"],default:"8",description:"Video duration in seconds","x-imgly-enum-labels":{"4":"4 seconds","8":"8 seconds","12":"12 seconds"}}},"x-fal-order-properties":["image_url","prompt","format","duration"],required:["image_url"]}}},paths:{}};var Al={"1280x720":{width:1280,height:720},"720x1280":{width:720,height:1280},"1792x1024":{width:1792,height:1024},"1024x1792":{width:1024,height:1792}};function Ut(e){return Al[e]??{width:1280,height:720}}function Cl(e,t){return e>=t?"1280x720":"720x1280"}function Bt(e){return async({cesdk:t})=>{let r="runware/openai/sora-2-pro/image2video";return y(t,"@imgly/plugin/formats",b.Formats),t.i18n.setTranslations({en:{[`panel.${k(r)}.imageSelection`]:"Select Image To Animate",[`libraries.${k(r)}.history.label`]:"Generated From Image"}}),v({modelId:"openai:3@2",providerId:r,name:"Sora 2 Pro",schema:zt,inputReference:"#/components/schemas/Sora2ProImage2VideoInput",cesdk:t,middleware:e.middlewares??[],supportedQuickActions:{"ly.img.createVideo":{mapInput:i=>({image_url:i.uri,prompt:i.prompt??""})}},getBlockInput:async i=>{let{width:n,height:o}=await P(i.image_url,t.engine),a=i.format??Cl(n,o),s=Ut(a),u=parseInt(i.duration??"8",10);return{video:{width:s.width,height:s.height,duration:u}}},mapInput:i=>{let n=Ut(i.format??"1280x720"),o=parseInt(i.duration??"8",10);return{positivePrompt:i.prompt??"",width:n.width,height:n.height,frameImages:[{inputImage:i.image_url,frame:"first"}],duration:o}}},e)}}var Pl={Veo31:{Text2Video:It,Image2Video:At},Veo31Fast:{Text2Video:Et,Image2Video:jt},Sora2:{Text2Video:Vt,Image2Video:Rt},Sora2Pro:{Text2Video:Nt,Image2Video:Bt}},Sd=Pl;export{Sd as default};
|
|
129
|
+
/*! Bundled license information:
|
|
130
|
+
|
|
131
|
+
lodash-es/lodash.js:
|
|
132
|
+
(**
|
|
133
|
+
* @license
|
|
134
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
135
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
136
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
137
|
+
* Released under MIT license <https://lodash.com/license>
|
|
138
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
139
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
140
|
+
*)
|
|
141
|
+
*/
|
|
142
|
+
//# sourceMappingURL=index.mjs.map
|