diff --git a/frontend/dist/assets/index.b5f97cf7.js b/frontend/dist/assets/index.00c5d275.js similarity index 98% rename from frontend/dist/assets/index.b5f97cf7.js rename to frontend/dist/assets/index.00c5d275.js index 0085756c2c..cf66a8df9d 100644 --- a/frontend/dist/assets/index.b5f97cf7.js +++ b/frontend/dist/assets/index.00c5d275.js @@ -687,4 +687,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XU(e,t){if(!!e){if(typeof e=="string")return k8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k8(e,t)}}function k8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nn)return[!1,aD(n)];if(e.sizen)return[!1,aD(n)]}return[!0,null]}function Gp(e){return e!=null}function qge(e){var t=e.files,n=e.accept,i=e.minSize,o=e.maxSize,u=e.multiple,c=e.maxFiles,p=e.validator;return!u&&t.length>1||u&&c>=1&&t.length>c?!1:t.every(function(h){var v=QU(h,n),b=rb(v,1),x=b[0],N=JU(h,i,o),_=rb(N,1),T=_[0],A=p?p(h):null;return x&&T&&!A})}function NS(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function c4(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function sD(e){e.preventDefault()}function Zge(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Kge(e){return e.indexOf("Edge/")!==-1}function Xge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Zge(e)||Kge(e)}function bu(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),c=1;ce.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function hbe(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,u;for(u=0;u=0)&&(n[o]=e[o]);return n}var zE=k.exports.forwardRef(function(e,t){var n=e.children,i=wS(e,ibe),o=i$(i),u=o.open,c=wS(o,abe);return k.exports.useImperativeHandle(t,function(){return{open:u}},[u]),C(k.exports.Fragment,{children:n(jr(jr({},c),{},{open:u}))},void 0,!1,{fileName:rbe,lineNumber:70,columnNumber:23},this)});zE.displayName="Dropzone";var r$={disabled:!1,getFilesFromEvent:Ege,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};zE.defaultProps=r$;zE.propTypes={children:Lt.exports.func,accept:Lt.exports.objectOf(Lt.exports.arrayOf(Lt.exports.string)),multiple:Lt.exports.bool,preventDropOnDocument:Lt.exports.bool,noClick:Lt.exports.bool,noKeyboard:Lt.exports.bool,noDrag:Lt.exports.bool,noDragEventsBubbling:Lt.exports.bool,minSize:Lt.exports.number,maxSize:Lt.exports.number,maxFiles:Lt.exports.number,disabled:Lt.exports.bool,getFilesFromEvent:Lt.exports.func,onFileDialogCancel:Lt.exports.func,onFileDialogOpen:Lt.exports.func,useFsAccessApi:Lt.exports.bool,autoFocus:Lt.exports.bool,onDragEnter:Lt.exports.func,onDragLeave:Lt.exports.func,onDragOver:Lt.exports.func,onDrop:Lt.exports.func,onDropAccepted:Lt.exports.func,onDropRejected:Lt.exports.func,onError:Lt.exports.func,validator:Lt.exports.func};var M8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function i$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=jr(jr({},r$),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,u=t.maxSize,c=t.minSize,p=t.multiple,h=t.maxFiles,v=t.onDragEnter,b=t.onDragLeave,x=t.onDragOver,N=t.onDrop,_=t.onDropAccepted,T=t.onDropRejected,A=t.onFileDialogCancel,M=t.onFileDialogOpen,z=t.useFsAccessApi,P=t.autoFocus,I=t.preventDropOnDocument,F=t.noClick,$=t.noKeyboard,Y=t.noDrag,Z=t.noDragEventsBubbling,ue=t.onError,ce=t.validator,le=k.exports.useMemo(function(){return ebe(n)},[n]),ge=k.exports.useMemo(function(){return Jge(n)},[n]),Ye=k.exports.useMemo(function(){return typeof M=="function"?M:uD},[M]),re=k.exports.useMemo(function(){return typeof A=="function"?A:uD},[A]),ie=k.exports.useRef(null),Ce=k.exports.useRef(null),xe=k.exports.useReducer(vbe,M8),K=G6(xe,2),be=K[0],Ne=K[1],me=be.isFocused,we=be.isFileDialogActive,De=k.exports.useRef(typeof window<"u"&&window.isSecureContext&&z&&Qge()),Pe=function(){!De.current&&we&&setTimeout(function(){if(Ce.current){var Je=Ce.current.files;Je.length||(Ne({type:"closeDialog"}),re())}},300)};k.exports.useEffect(function(){return window.addEventListener("focus",Pe,!1),function(){window.removeEventListener("focus",Pe,!1)}},[Ce,we,re,De]);var Ze=k.exports.useRef([]),it=function(Je){ie.current&&ie.current.contains(Je.target)||(Je.preventDefault(),Ze.current=[])};k.exports.useEffect(function(){return I&&(document.addEventListener("dragover",sD,!1),document.addEventListener("drop",it,!1)),function(){I&&(document.removeEventListener("dragover",sD),document.removeEventListener("drop",it))}},[ie,I]),k.exports.useEffect(function(){return!i&&P&&ie.current&&ie.current.focus(),function(){}},[ie,P,i]);var bt=k.exports.useCallback(function(He){ue?ue(He):console.error(He)},[ue]),Wt=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Ft(He),Ze.current=[].concat(lbe(Ze.current),[He.target]),c4(He)&&Promise.resolve(o(He)).then(function(Je){if(!(NS(He)&&!Z)){var nn=Je.length,Ot=nn>0&&qge({files:Je,accept:le,minSize:c,maxSize:u,multiple:p,maxFiles:h,validator:ce}),Oe=nn>0&&!Ot;Ne({isDragAccept:Ot,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),v&&v(He)}}).catch(function(Je){return bt(Je)})},[o,v,bt,Z,le,c,u,p,h,ce]),Xe=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Ft(He);var Je=c4(He);if(Je&&He.dataTransfer)try{He.dataTransfer.dropEffect="copy"}catch{}return Je&&x&&x(He),!1},[x,Z]),ct=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Ft(He);var Je=Ze.current.filter(function(Ot){return ie.current&&ie.current.contains(Ot)}),nn=Je.indexOf(He.target);nn!==-1&&Je.splice(nn,1),Ze.current=Je,!(Je.length>0)&&(Ne({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),c4(He)&&b&&b(He))},[ie,b,Z]),wt=k.exports.useCallback(function(He,Je){var nn=[],Ot=[];He.forEach(function(Oe){var qt=QU(Oe,le),En=G6(qt,2),je=En[0],at=En[1],Tt=JU(Oe,c,u),hn=G6(Tt,2),Jt=hn[0],Tn=hn[1],In=ce?ce(Oe):null;if(je&&Jt&&!In)nn.push(Oe);else{var Or=[at,Tn];In&&(Or=Or.concat(In)),Ot.push({file:Oe,errors:Or.filter(function(On){return On})})}}),(!p&&nn.length>1||p&&h>=1&&nn.length>h)&&(nn.forEach(function(Oe){Ot.push({file:Oe,errors:[Yge]})}),nn.splice(0)),Ne({acceptedFiles:nn,fileRejections:Ot,type:"setFiles"}),N&&N(nn,Ot,Je),Ot.length>0&&T&&T(Ot,Je),nn.length>0&&_&&_(nn,Je)},[Ne,p,le,c,u,h,N,_,T,ce]),Bt=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Ft(He),Ze.current=[],c4(He)&&Promise.resolve(o(He)).then(function(Je){NS(He)&&!Z||wt(Je,He)}).catch(function(Je){return bt(Je)}),Ne({type:"reset"})},[o,wt,bt,Z]),Ge=k.exports.useCallback(function(){if(De.current){Ne({type:"openDialog"}),Ye();var He={multiple:p,types:ge};window.showOpenFilePicker(He).then(function(Je){return o(Je)}).then(function(Je){wt(Je,null),Ne({type:"closeDialog"})}).catch(function(Je){tbe(Je)?(re(Je),Ne({type:"closeDialog"})):nbe(Je)?(De.current=!1,Ce.current?(Ce.current.value=null,Ce.current.click()):bt(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):bt(Je)});return}Ce.current&&(Ne({type:"openDialog"}),Ye(),Ce.current.value=null,Ce.current.click())},[Ne,Ye,re,z,wt,bt,ge,p]),Gt=k.exports.useCallback(function(He){!ie.current||!ie.current.isEqualNode(He.target)||(He.key===" "||He.key==="Enter"||He.keyCode===32||He.keyCode===13)&&(He.preventDefault(),Ge())},[ie,Ge]),ye=k.exports.useCallback(function(){Ne({type:"focus"})},[]),et=k.exports.useCallback(function(){Ne({type:"blur"})},[]),_t=k.exports.useCallback(function(){F||(Xge()?setTimeout(Ge,0):Ge())},[F,Ge]),lt=function(Je){return i?null:Je},xn=function(Je){return $?null:lt(Je)},$n=function(Je){return Y?null:lt(Je)},Ft=function(Je){Z&&Je.stopPropagation()},on=k.exports.useMemo(function(){return function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Je=He.refKey,nn=Je===void 0?"ref":Je,Ot=He.role,Oe=He.onKeyDown,qt=He.onFocus,En=He.onBlur,je=He.onClick,at=He.onDragEnter,Tt=He.onDragOver,hn=He.onDragLeave,Jt=He.onDrop,Tn=wS(He,obe);return jr(jr(O8({onKeyDown:xn(bu(Oe,Gt)),onFocus:xn(bu(qt,ye)),onBlur:xn(bu(En,et)),onClick:lt(bu(je,_t)),onDragEnter:$n(bu(at,Wt)),onDragOver:$n(bu(Tt,Xe)),onDragLeave:$n(bu(hn,ct)),onDrop:$n(bu(Jt,Bt)),role:typeof Ot=="string"&&Ot!==""?Ot:"presentation"},nn,ie),!i&&!$?{tabIndex:0}:{}),Tn)}},[ie,Gt,ye,et,_t,Wt,Xe,ct,Bt,$,Y,i]),Ln=k.exports.useCallback(function(He){He.stopPropagation()},[]),gn=k.exports.useMemo(function(){return function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Je=He.refKey,nn=Je===void 0?"ref":Je,Ot=He.onChange,Oe=He.onClick,qt=wS(He,sbe),En=O8({accept:le,multiple:p,type:"file",style:{display:"none"},onChange:lt(bu(Ot,Bt)),onClick:lt(bu(Oe,Ln)),tabIndex:-1},nn,Ce);return jr(jr({},En),qt)}},[Ce,n,p,Bt,i]);return jr(jr({},be),{},{isFocused:me&&!i,getRootProps:on,getInputProps:gn,rootRef:ie,inputRef:Ce,open:lt(Ge)})}function vbe(e,t){switch(t.type){case"focus":return jr(jr({},e),{},{isFocused:!0});case"blur":return jr(jr({},e),{},{isFocused:!1});case"openDialog":return jr(jr({},M8),{},{isFileDialogActive:!0});case"closeDialog":return jr(jr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return jr(jr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return jr(jr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return jr({},M8);default:return e}}function uD(){}var cD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ImageUploader.tsx";const gbe=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n,styleClass:i})=>{const o=k.exports.useCallback((v,b)=>{b.forEach(x=>{n(x)}),v.forEach(x=>{t(x)})},[t,n]),{getRootProps:u,getInputProps:c,open:p}=i$({onDrop:o,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),h=v=>{v.stopPropagation(),p()};return C(Xs,{...u(),flexGrow:3,className:`${i}`,children:[C("input",{...c({multiple:!1})},void 0,!1,{fileName:cD,lineNumber:59,columnNumber:7},void 0),k.exports.cloneElement(e,{onClick:h})]},void 0,!0,{fileName:cD,lineNumber:58,columnNumber:5},void 0)};var fD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/InvokeImageUploader.tsx";function bbe(e){const{label:t,icon:n,dispatcher:i,styleClass:o,onMouseOver:u,OnMouseout:c}=e,p=cB(),h=Sn(),v=k.exports.useCallback(x=>h(i(x)),[h,i]),b=k.exports.useCallback(x=>{const N=x.errors.reduce((_,T)=>_+` -`+T.message,"");p({title:"Upload failed",description:N,status:"error",isClosable:!0})},[p]);return C(gbe,{fileAcceptedCallback:v,fileRejectionCallback:b,styleClass:o,children:C(Du,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:u,onMouseOut:c,leftIcon:n,width:"100%",children:t||null},void 0,!1,{fileName:fD,lineNumber:52,columnNumber:7},this)},void 0,!1,{fileName:fD,lineNumber:47,columnNumber:5},this)}var Ro="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const ybe=Ga(e=>e.system,e=>e.shouldConfirmOnDelete),a$=k.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:i,onOpen:o,onClose:u}=sS(),c=Sn(),p=gt(ybe),h=k.exports.useRef(null),v=N=>{N.stopPropagation(),p?o():b()},b=()=>{c(S0e(e)),u()};ii("del",()=>{p?o():b()},[e,p]);const x=N=>c(lU(!N.target.checked));return C(Ui,{children:[k.exports.cloneElement(t,{onClick:v,ref:n}),C(doe,{isOpen:i,leastDestructiveRef:h,onClose:u,children:C(Kg,{children:C(poe,{children:[C(rE,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:Ro,lineNumber:98,columnNumber:15},void 0),C(fS,{children:C(Sr,{direction:"column",gap:5,children:[C(Oo,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:Ro,lineNumber:104,columnNumber:19},void 0),C(fd,{children:C(Sr,{alignItems:"center",children:[C(sm,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:Ro,lineNumber:109,columnNumber:23},void 0),C(s3,{checked:!p,onChange:x},void 0,!1,{fileName:Ro,lineNumber:110,columnNumber:23},void 0)]},void 0,!0,{fileName:Ro,lineNumber:108,columnNumber:21},void 0)},void 0,!1,{fileName:Ro,lineNumber:107,columnNumber:19},void 0)]},void 0,!0,{fileName:Ro,lineNumber:103,columnNumber:17},void 0)},void 0,!1,{fileName:Ro,lineNumber:102,columnNumber:15},void 0),C(nE,{children:[C(Du,{ref:h,onClick:u,children:"Cancel"},void 0,!1,{fileName:Ro,lineNumber:119,columnNumber:17},void 0),C(Du,{colorScheme:"red",onClick:b,ml:3,children:"Delete"},void 0,!1,{fileName:Ro,lineNumber:122,columnNumber:17},void 0)]},void 0,!0,{fileName:Ro,lineNumber:118,columnNumber:15},void 0)]},void 0,!0,{fileName:Ro,lineNumber:97,columnNumber:13},void 0)},void 0,!1,{fileName:Ro,lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:Ro,lineNumber:91,columnNumber:9},void 0)]},void 0,!0)});var Fp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/InvokePopover.tsx";const dD=({title:e="Popup",styleClass:t,delay:n=50,popoverOptions:i,actionButton:o,children:u})=>C(aE,{trigger:"hover",closeDelay:n,children:[C(uE,{children:C(Xs,{children:u},void 0,!1,{fileName:Fp,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:Fp,lineNumber:30,columnNumber:7},void 0),C(lE,{className:`popover-content ${t}`,children:[C(oE,{className:"popover-arrow"},void 0,!1,{fileName:Fp,lineNumber:34,columnNumber:9},void 0),C(Mz,{className:"popover-header",children:e},void 0,!1,{fileName:Fp,lineNumber:35,columnNumber:9},void 0),C("div",{className:"popover-options",children:[i||null,o]},void 0,!0,{fileName:Fp,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:Fp,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:Fp,lineNumber:29,columnNumber:5},void 0);var mi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const Sbe=Ga(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),o$=({image:e})=>{const t=Sn(),n=gt(z=>z.options.shouldShowImageDetails),i=cB(),o=gt(z=>z.gallery.intermediateImage),u=gt(z=>z.options.upscalingLevel),c=gt(z=>z.options.facetoolStrength),{isProcessing:p,isConnected:h,isGFPGANAvailable:v,isESRGANAvailable:b}=gt(Sbe),x=()=>{t(Tv(e.url)),t(Rc(1))};ii("shift+i",()=>{e?(x(),i({title:"Sent To Image To Image",status:"success",duration:2500,isClosable:!0})):i({title:"No Image Loaded",description:"No image found to send to image to image module.",status:"error",duration:2500,isClosable:!0})},[e]);const N=()=>t(rU(e.metadata));ii("a",()=>{["txt2img","img2img"].includes(e?.metadata?.image?.type)?(N(),i({title:"Parameters Set",status:"success",duration:2500,isClosable:!0})):i({title:"Parameters Not Set",description:"No metadata found for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const _=()=>t(Tb(e.metadata.image.seed));ii("s",()=>{e?.metadata?.image?.seed?(_(),i({title:"Seed Set",status:"success",duration:2500,isClosable:!0})):i({title:"Seed Not Set",description:"Could not find seed for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const T=()=>t(b0e(e));ii("u",()=>{b&&Boolean(!o)&&h&&!p&&u?T():i({title:"Upscaling Failed",status:"error",duration:2500,isClosable:!0})},[e,b,o,h,p,u]);const A=()=>t(y0e(e));ii("r",()=>{v&&Boolean(!o)&&h&&!p&&c?A():i({title:"Face Restoration Failed",status:"error",duration:2500,isClosable:!0})},[e,v,o,h,p,c]);const M=()=>t(nve(!n));return ii("i",()=>{e?M():i({title:"Failed to load metadata",status:"error",duration:2500,isClosable:!0})},[e,n]),C("div",{className:"current-image-options",children:[C(Wp,{icon:C(q1e,{},void 0,!1,{fileName:mi,lineNumber:244,columnNumber:15},void 0),tooltip:"Send To Image To Image","aria-label":"Send To Image To Image",onClick:x},void 0,!1,{fileName:mi,lineNumber:243,columnNumber:7},void 0),C(vg,{label:"Use All",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:N},void 0,!1,{fileName:mi,lineNumber:250,columnNumber:7},void 0),C(vg,{label:"Use Seed",isDisabled:!e?.metadata?.image?.seed,onClick:_},void 0,!1,{fileName:mi,lineNumber:258,columnNumber:7},void 0),C(dD,{title:"Restore Faces",popoverOptions:C(DE,{},void 0,!1,{fileName:mi,lineNumber:266,columnNumber:25},void 0),actionButton:C(vg,{label:"Restore Faces",isDisabled:!v||Boolean(o)||!(h&&!p)||!c,onClick:A},void 0,!1,{fileName:mi,lineNumber:268,columnNumber:11},void 0),children:C(Wp,{icon:C(V1e,{},void 0,!1,{fileName:mi,lineNumber:280,columnNumber:30},void 0),"aria-label":"Restore Faces"},void 0,!1,{fileName:mi,lineNumber:280,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:264,columnNumber:7},void 0),C(dD,{title:"Upscale",styleClass:"upscale-popover",popoverOptions:C(PE,{},void 0,!1,{fileName:mi,lineNumber:286,columnNumber:25},void 0),actionButton:C(vg,{label:"Upscale Image",isDisabled:!b||Boolean(o)||!(h&&!p)||!u,onClick:T},void 0,!1,{fileName:mi,lineNumber:288,columnNumber:11},void 0),children:C(Wp,{icon:C(G1e,{},void 0,!1,{fileName:mi,lineNumber:300,columnNumber:30},void 0),"aria-label":"Upscale"},void 0,!1,{fileName:mi,lineNumber:300,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:283,columnNumber:7},void 0),C(Wp,{icon:C(H1e,{},void 0,!1,{fileName:mi,lineNumber:304,columnNumber:15},void 0),tooltip:"Details","aria-label":"Details",onClick:M},void 0,!1,{fileName:mi,lineNumber:303,columnNumber:7},void 0),C(a$,{image:e,children:C(Wp,{icon:C(j1e,{},void 0,!1,{fileName:mi,lineNumber:312,columnNumber:17},void 0),tooltip:"Delete Image","aria-label":"Delete Image",isDisabled:Boolean(o)},void 0,!1,{fileName:mi,lineNumber:311,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:310,columnNumber:7},void 0)]},void 0,!0,{fileName:mi,lineNumber:242,columnNumber:5},void 0)};var Tc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImagePreview.tsx";const xbe=Ga(e=>e.gallery,e=>{const t=e.images.findIndex(i=>i.uuid===e?.currentImage?.uuid),n=e.images.length;return{isOnFirstImage:t===0,isOnLastImage:!isNaN(t)&&t===n-1}},{memoizeOptions:{resultEqualityCheck:tb.isEqual}});function s$(e){const{imageToDisplay:t}=e,n=Sn(),{isOnFirstImage:i,isOnLastImage:o}=gt(xbe),u=gt(N=>N.options.shouldShowImageDetails),[c,p]=k.exports.useState(!1),h=()=>{p(!0)},v=()=>{p(!1)},b=()=>{n(oU())},x=()=>{n(aU())};return C("div",{className:"current-image-preview",children:[C(XS,{src:t.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:Tc,lineNumber:65,columnNumber:7},this),!u&&C("div",{className:"current-image-next-prev-buttons",children:[C("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:h,onMouseOut:v,children:c&&!i&&C(bi,{"aria-label":"Previous image",icon:C(fge,{className:"next-prev-button"},void 0,!1,{fileName:Tc,lineNumber:81,columnNumber:23},this),variant:"unstyled",onClick:b},void 0,!1,{fileName:Tc,lineNumber:79,columnNumber:15},this)},void 0,!1,{fileName:Tc,lineNumber:73,columnNumber:11},this),C("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:h,onMouseOut:v,children:c&&!o&&C(bi,{"aria-label":"Next image",icon:C(dge,{className:"next-prev-button"},void 0,!1,{fileName:Tc,lineNumber:95,columnNumber:23},this),variant:"unstyled",onClick:x},void 0,!1,{fileName:Tc,lineNumber:93,columnNumber:15},this)},void 0,!1,{fileName:Tc,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:Tc,lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:Tc,lineNumber:64,columnNumber:5},this)}var av="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/node_modules/@chakra-ui/icon/dist/index.esm.js",pD={path:C("g",{stroke:"currentColor",strokeWidth:"1.5",children:[C("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:av,lineNumber:14,columnNumber:22},globalThis),C("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:av,lineNumber:18,columnNumber:23},globalThis),C("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:av,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:av,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},l$=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:u=!1,children:c,className:p,__css:h,...v}=e,b=Kr("chakra-icon",p),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...h},N={ref:t,focusable:u,className:b,__css:x},_=i??pD.viewBox;if(n&&typeof n!="string")return Ae.createElement($e.svg,{as:n,...N,...v});const T=c??pD.path;return Ae.createElement($e.svg,{verticalAlign:"middle",viewBox:_,...N,...v},T)});l$.displayName="Icon";function Et(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,u=k.exports.Children.toArray(e.path),c=qe((p,h)=>C(l$,{ref:h,viewBox:t,...o,...p,children:u.length?u:C("path",{fill:"currentColor",d:n},void 0,!1,{fileName:av,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:av,lineNumber:88,columnNumber:60},this));return c.displayName=i,c}var dt="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/dist/index.esm.js";Et({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Et({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Et({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Et({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Et({displayName:"SunIcon",path:C("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[C("circle",{cx:"12",cy:"12",r:"5"},void 0,!1,{fileName:dt,lineNumber:42,columnNumber:22},globalThis),C("path",{d:"M12 1v2"},void 0,!1,{fileName:dt,lineNumber:46,columnNumber:23},globalThis),C("path",{d:"M12 21v2"},void 0,!1,{fileName:dt,lineNumber:48,columnNumber:23},globalThis),C("path",{d:"M4.22 4.22l1.42 1.42"},void 0,!1,{fileName:dt,lineNumber:50,columnNumber:23},globalThis),C("path",{d:"M18.36 18.36l1.42 1.42"},void 0,!1,{fileName:dt,lineNumber:52,columnNumber:23},globalThis),C("path",{d:"M1 12h2"},void 0,!1,{fileName:dt,lineNumber:54,columnNumber:23},globalThis),C("path",{d:"M21 12h2"},void 0,!1,{fileName:dt,lineNumber:56,columnNumber:23},globalThis),C("path",{d:"M4.22 19.78l1.42-1.42"},void 0,!1,{fileName:dt,lineNumber:58,columnNumber:23},globalThis),C("path",{d:"M18.36 5.64l1.42-1.42"},void 0,!1,{fileName:dt,lineNumber:60,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:36,columnNumber:25},globalThis)});Et({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Et({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:C("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"},void 0,!1,{fileName:dt,lineNumber:77,columnNumber:25},globalThis)});Et({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Et({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});Et({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Et({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Et({displayName:"ViewIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"},void 0,!1,{fileName:dt,lineNumber:119,columnNumber:22},globalThis),C("circle",{cx:"12",cy:"12",r:"2"},void 0,!1,{fileName:dt,lineNumber:121,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:117,columnNumber:25},globalThis)});Et({displayName:"ViewOffIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"},void 0,!1,{fileName:dt,lineNumber:134,columnNumber:22},globalThis),C("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"},void 0,!1,{fileName:dt,lineNumber:136,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:132,columnNumber:25},globalThis)});Et({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Et({displayName:"DeleteIcon",path:C("g",{fill:"currentColor",children:C("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"},void 0,!1,{fileName:dt,lineNumber:155,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:153,columnNumber:25},globalThis)});Et({displayName:"RepeatIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"},void 0,!1,{fileName:dt,lineNumber:166,columnNumber:22},globalThis),C("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"},void 0,!1,{fileName:dt,lineNumber:168,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:164,columnNumber:25},globalThis)});Et({displayName:"RepeatClockIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"},void 0,!1,{fileName:dt,lineNumber:179,columnNumber:22},globalThis),C("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"},void 0,!1,{fileName:dt,lineNumber:181,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:177,columnNumber:25},globalThis)});Et({displayName:"EditIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},void 0,!1,{fileName:dt,lineNumber:195,columnNumber:22},globalThis),C("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},void 0,!1,{fileName:dt,lineNumber:197,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:190,columnNumber:25},globalThis)});Et({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Et({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Et({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Et({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Et({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Et({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Et({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Et({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Et({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var u$=Et({displayName:"ExternalLinkIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},void 0,!1,{fileName:dt,lineNumber:275,columnNumber:22},globalThis),C("path",{d:"M15 3h6v6"},void 0,!1,{fileName:dt,lineNumber:277,columnNumber:23},globalThis),C("path",{d:"M10 14L21 3"},void 0,!1,{fileName:dt,lineNumber:279,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:270,columnNumber:25},globalThis)});Et({displayName:"LinkIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"},void 0,!1,{fileName:dt,lineNumber:290,columnNumber:22},globalThis),C("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"},void 0,!1,{fileName:dt,lineNumber:292,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:288,columnNumber:25},globalThis)});Et({displayName:"PlusSquareIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"},void 0,!1,{fileName:dt,lineNumber:306,columnNumber:22},globalThis),C("path",{d:"M12 8v8"},void 0,!1,{fileName:dt,lineNumber:313,columnNumber:23},globalThis),C("path",{d:"M8 12h8"},void 0,!1,{fileName:dt,lineNumber:315,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:301,columnNumber:25},globalThis)});Et({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Et({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Et({displayName:"TimeIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"},void 0,!1,{fileName:dt,lineNumber:342,columnNumber:22},globalThis),C("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"},void 0,!1,{fileName:dt,lineNumber:344,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:340,columnNumber:25},globalThis)});Et({displayName:"ArrowRightIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"},void 0,!1,{fileName:dt,lineNumber:355,columnNumber:22},globalThis),C("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"},void 0,!1,{fileName:dt,lineNumber:357,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:353,columnNumber:25},globalThis)});Et({displayName:"ArrowLeftIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"},void 0,!1,{fileName:dt,lineNumber:368,columnNumber:22},globalThis),C("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"},void 0,!1,{fileName:dt,lineNumber:370,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:366,columnNumber:25},globalThis)});Et({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Et({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Et({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Et({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Et({displayName:"EmailIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"},void 0,!1,{fileName:dt,lineNumber:410,columnNumber:22},globalThis),C("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"},void 0,!1,{fileName:dt,lineNumber:412,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:408,columnNumber:25},globalThis)});Et({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Et({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Et({displayName:"SpinnerIcon",path:C(Ui,{children:[C("defs",{children:C("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[C("stop",{stopColor:"currentColor",offset:"0%"},void 0,!1,{fileName:dt,lineNumber:443,columnNumber:22},globalThis),C("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"},void 0,!1,{fileName:dt,lineNumber:446,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:437,columnNumber:133},globalThis)},void 0,!1,{fileName:dt,lineNumber:437,columnNumber:83},globalThis),C("g",{transform:"translate(2)",fill:"none",children:[C("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"},void 0,!1,{fileName:dt,lineNumber:453,columnNumber:22},globalThis),C("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:dt,lineNumber:459,columnNumber:23},globalThis),C("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"},void 0,!1,{fileName:dt,lineNumber:463,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:450,columnNumber:25},globalThis)]},void 0,!0)});Et({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});Et({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:C("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"},void 0,!1,{fileName:dt,lineNumber:484,columnNumber:25},globalThis)});Et({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Et({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Et({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Et({displayName:"InfoOutlineIcon",path:C("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[C("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"},void 0,!1,{fileName:dt,lineNumber:521,columnNumber:22},globalThis),C("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"},void 0,!1,{fileName:dt,lineNumber:527,columnNumber:23},globalThis),C("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"},void 0,!1,{fileName:dt,lineNumber:533,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:516,columnNumber:25},globalThis)});Et({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Et({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});Et({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Et({displayName:"QuestionOutlineIcon",path:C("g",{stroke:"currentColor",strokeWidth:"1.5",children:[C("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:dt,lineNumber:568,columnNumber:22},globalThis),C("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:dt,lineNumber:572,columnNumber:23},globalThis),C("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:dt,lineNumber:576,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:565,columnNumber:25},globalThis)});Et({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});Et({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Et({viewBox:"0 0 14 14",path:C("g",{fill:"currentColor",children:C("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"},void 0,!1,{fileName:dt,lineNumber:605,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:603,columnNumber:25},globalThis)});Et({displayName:"MinusIcon",path:C("g",{fill:"currentColor",children:C("rect",{height:"4",width:"20",x:"2",y:"10"},void 0,!1,{fileName:dt,lineNumber:616,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:614,columnNumber:25},globalThis)});Et({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});function c$(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M245.09 327.74v-37.32c57.07 0 84.51 13.47 108.58 38.68 5.4 5.65 15 1.32 14.29-6.43-5.45-61.45-34.14-117.09-122.87-117.09v-37.32a8.32 8.32 0 00-14.05-6L146.58 242a8.2 8.2 0 000 11.94L231 333.71a8.32 8.32 0 0014.09-5.97z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}}]})(e)}var kt="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageMetaDataViewer/ImageMetadataViewer.tsx";const Dr=({label:e,value:t,onClick:n,isLink:i,labelPosition:o})=>C(Sr,{gap:2,children:[n&&C(Ca,{label:`Recall ${e}`,children:C(bi,{"aria-label":"Use this parameter",icon:C(c$,{},void 0,!1,{fileName:kt,lineNumber:64,columnNumber:19},void 0),size:"xs",variant:"ghost",fontSize:20,onClick:n},void 0,!1,{fileName:kt,lineNumber:62,columnNumber:11},void 0)},void 0,!1,{fileName:kt,lineNumber:61,columnNumber:9},void 0),C(Sr,{direction:o?"column":"row",children:[C(Oo,{fontWeight:"semibold",whiteSpace:"pre-wrap",pr:2,children:[e,":"]},void 0,!0,{fileName:kt,lineNumber:73,columnNumber:9},void 0),i?C(cv,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",C(u$,{mx:"2px"},void 0,!1,{fileName:kt,lineNumber:78,columnNumber:32},void 0)]},void 0,!0,{fileName:kt,lineNumber:77,columnNumber:11},void 0):C(Oo,{overflowY:"scroll",wordBreak:"break-all",children:t.toString()},void 0,!1,{fileName:kt,lineNumber:81,columnNumber:11},void 0)]},void 0,!0,{fileName:kt,lineNumber:72,columnNumber:7},void 0)]},void 0,!0,{fileName:kt,lineNumber:59,columnNumber:5},void 0),Cbe=(e,t)=>e.image.uuid===t.image.uuid,f$=k.exports.memo(({image:e,styleClass:t})=>{const n=Sn(),i=e?.metadata?.image||{},{type:o,postprocessing:u,sampler:c,prompt:p,seed:h,variations:v,steps:b,cfg_scale:x,seamless:N,hires_fix:_,width:T,height:A,strength:M,fit:z,init_image_path:P,mask_image_path:I,orig_path:F,scale:$}=i,Y=JSON.stringify(i,null,2);return C("div",{className:`image-metadata-viewer ${t}`,children:C(Sr,{gap:1,direction:"column",width:"100%",children:[C(Sr,{gap:2,children:[C(Oo,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:kt,lineNumber:140,columnNumber:13},void 0),C(cv,{href:e.url,isExternal:!0,children:[e.url,C(u$,{mx:"2px"},void 0,!1,{fileName:kt,lineNumber:143,columnNumber:15},void 0)]},void 0,!0,{fileName:kt,lineNumber:141,columnNumber:13},void 0)]},void 0,!0,{fileName:kt,lineNumber:139,columnNumber:11},void 0),Object.keys(i).length>0?C(Ui,{children:[o&&C(Dr,{label:"Generation type",value:o},void 0,!1,{fileName:kt,lineNumber:148,columnNumber:24},void 0),["esrgan","gfpgan"].includes(o)&&C(Dr,{label:"Original image",value:F},void 0,!1,{fileName:kt,lineNumber:150,columnNumber:17},void 0),o==="gfpgan"&&M!==void 0&&C(Dr,{label:"Fix faces strength",value:M,onClick:()=>n(L4(M))},void 0,!1,{fileName:kt,lineNumber:153,columnNumber:17},void 0),o==="esrgan"&&$!==void 0&&C(Dr,{label:"Upscaling scale",value:$,onClick:()=>n(y8($))},void 0,!1,{fileName:kt,lineNumber:160,columnNumber:17},void 0),o==="esrgan"&&M!==void 0&&C(Dr,{label:"Upscaling strength",value:M,onClick:()=>n(S8(M))},void 0,!1,{fileName:kt,lineNumber:167,columnNumber:17},void 0),p&&C(Dr,{label:"Prompt",labelPosition:"top",value:g8(p),onClick:()=>n(WB(p))},void 0,!1,{fileName:kt,lineNumber:174,columnNumber:17},void 0),h!==void 0&&C(Dr,{label:"Seed",value:h,onClick:()=>n(Tb(h))},void 0,!1,{fileName:kt,lineNumber:182,columnNumber:17},void 0),c&&C(Dr,{label:"Sampler",value:c,onClick:()=>n(KB(c))},void 0,!1,{fileName:kt,lineNumber:189,columnNumber:17},void 0),b&&C(Dr,{label:"Steps",value:b,onClick:()=>n(GB(b))},void 0,!1,{fileName:kt,lineNumber:196,columnNumber:17},void 0),x!==void 0&&C(Dr,{label:"CFG scale",value:x,onClick:()=>n(YB(x))},void 0,!1,{fileName:kt,lineNumber:203,columnNumber:17},void 0),v&&v.length>0&&C(Dr,{label:"Seed-weight pairs",value:b8(v),onClick:()=>n(nU(b8(v)))},void 0,!1,{fileName:kt,lineNumber:210,columnNumber:17},void 0),N&&C(Dr,{label:"Seamless",value:N,onClick:()=>n(XB(N))},void 0,!1,{fileName:kt,lineNumber:219,columnNumber:17},void 0),_&&C(Dr,{label:"High Resolution Optimization",value:_,onClick:()=>n(QB(_))},void 0,!1,{fileName:kt,lineNumber:226,columnNumber:17},void 0),T&&C(Dr,{label:"Width",value:T,onClick:()=>n(ZB(T))},void 0,!1,{fileName:kt,lineNumber:233,columnNumber:17},void 0),A&&C(Dr,{label:"Height",value:A,onClick:()=>n(qB(A))},void 0,!1,{fileName:kt,lineNumber:240,columnNumber:17},void 0),P&&C(Dr,{label:"Initial image",value:P,isLink:!0,onClick:()=>n(Tv(P))},void 0,!1,{fileName:kt,lineNumber:247,columnNumber:17},void 0),I&&C(Dr,{label:"Mask image",value:I,isLink:!0,onClick:()=>n(x8(I))},void 0,!1,{fileName:kt,lineNumber:255,columnNumber:17},void 0),o==="img2img"&&M&&C(Dr,{label:"Image to image strength",value:M,onClick:()=>n(JB(M))},void 0,!1,{fileName:kt,lineNumber:263,columnNumber:17},void 0),z&&C(Dr,{label:"Image to image fit",value:z,onClick:()=>n(tU(z))},void 0,!1,{fileName:kt,lineNumber:270,columnNumber:17},void 0),u&&u.length>0&&C(Ui,{children:[C(P_,{size:"sm",children:"Postprocessing"},void 0,!1,{fileName:kt,lineNumber:278,columnNumber:19},void 0),u.map((Z,ue)=>{if(Z.type==="esrgan"){const{scale:ce,strength:le}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Upscale (ESRGAN)`},void 0,!1,{fileName:kt,lineNumber:293,columnNumber:29},void 0),C(Dr,{label:"Scale",value:ce,onClick:()=>n(y8(ce))},void 0,!1,{fileName:kt,lineNumber:296,columnNumber:29},void 0),C(Dr,{label:"Strength",value:le,onClick:()=>n(S8(le))},void 0,!1,{fileName:kt,lineNumber:301,columnNumber:29},void 0)]},ue,!0,{fileName:kt,lineNumber:287,columnNumber:27},void 0)}else if(Z.type==="gfpgan"){const{strength:ce}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Face restoration (GFPGAN)`},void 0,!1,{fileName:kt,lineNumber:319,columnNumber:29},void 0),C(Dr,{label:"Strength",value:ce,onClick:()=>{n(L4(ce)),n(O4("gfpgan"))}},void 0,!1,{fileName:kt,lineNumber:323,columnNumber:29},void 0)]},ue,!0,{fileName:kt,lineNumber:313,columnNumber:27},void 0)}else if(Z.type==="codeformer"){const{strength:ce,fidelity:le}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Face restoration (Codeformer)`},void 0,!1,{fileName:kt,lineNumber:342,columnNumber:29},void 0),C(Dr,{label:"Strength",value:ce,onClick:()=>{n(L4(ce)),n(O4("codeformer"))}},void 0,!1,{fileName:kt,lineNumber:346,columnNumber:29},void 0),le&&C(Dr,{label:"Fidelity",value:le,onClick:()=>{n(eU(le)),n(O4("codeformer"))}},void 0,!1,{fileName:kt,lineNumber:355,columnNumber:31},void 0)]},ue,!0,{fileName:kt,lineNumber:336,columnNumber:27},void 0)}})]},void 0,!0),C(Sr,{gap:2,direction:"column",children:[C(Sr,{gap:2,children:[C(Ca,{label:"Copy metadata JSON",children:C(bi,{"aria-label":"Copy metadata JSON",icon:C(hge,{},void 0,!1,{fileName:kt,lineNumber:376,columnNumber:29},void 0),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(Y)},void 0,!1,{fileName:kt,lineNumber:374,columnNumber:21},void 0)},void 0,!1,{fileName:kt,lineNumber:373,columnNumber:19},void 0),C(Oo,{fontWeight:"semibold",children:"Metadata JSON:"},void 0,!1,{fileName:kt,lineNumber:385,columnNumber:19},void 0)]},void 0,!0,{fileName:kt,lineNumber:372,columnNumber:17},void 0),C("div",{className:"image-json-viewer",children:C("pre",{children:Y},void 0,!1,{fileName:kt,lineNumber:388,columnNumber:19},void 0)},void 0,!1,{fileName:kt,lineNumber:387,columnNumber:17},void 0)]},void 0,!0,{fileName:kt,lineNumber:371,columnNumber:15},void 0)]},void 0,!0):C(hF,{width:"100%",pt:10,children:C(Oo,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:kt,lineNumber:394,columnNumber:15},void 0)},void 0,!1,{fileName:kt,lineNumber:393,columnNumber:13},void 0)]},void 0,!0,{fileName:kt,lineNumber:138,columnNumber:9},void 0)},void 0,!1,{fileName:kt,lineNumber:137,columnNumber:7},void 0)},Cbe);var zp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/InitImagePreview.tsx";function mD(){const e=gt(i=>i.options.initialImagePath),t=Sn();return C("div",{className:"init-image-preview",children:[C("div",{className:"init-image-preview-header",children:[C("h1",{children:"Initial Image"},void 0,!1,{fileName:zp,lineNumber:21,columnNumber:9},this),C(bi,{isDisabled:!e,size:"sm","aria-label":"Reset Initial Image",onClick:i=>{i.stopPropagation(),t(Tv(null))},icon:C(jU,{},void 0,!1,{fileName:zp,lineNumber:27,columnNumber:17},this)},void 0,!1,{fileName:zp,lineNumber:22,columnNumber:9},this)]},void 0,!0,{fileName:zp,lineNumber:20,columnNumber:7},this),e&&C("div",{className:"init-image-image",children:C(XS,{fit:"contain",src:e,rounded:"md"},void 0,!1,{fileName:zp,lineNumber:32,columnNumber:11},this)},void 0,!1,{fileName:zp,lineNumber:31,columnNumber:9},this)]},void 0,!0,{fileName:zp,lineNumber:19,columnNumber:5},this)}var os="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImageDisplay.tsx";function Nbe(){const e=gt(u=>u.options.initialImagePath),{currentImage:t,intermediateImage:n}=gt(u=>u.gallery),i=gt(u=>u.options.shouldShowImageDetails),o=n||t;return C("div",{className:"image-to-image-display",style:o?{gridAutoRows:"max-content auto"}:{gridAutoRows:"auto"},children:e?C(Ui,{children:o?C(Ui,{children:[C(o$,{image:o},void 0,!1,{fileName:os,lineNumber:40,columnNumber:15},this),C("div",{className:"image-to-image-dual-preview-container",children:[C("div",{className:"image-to-image-dual-preview",children:[C(mD,{},void 0,!1,{fileName:os,lineNumber:43,columnNumber:19},this),C("div",{className:"image-to-image-current-image-display",children:C(s$,{imageToDisplay:o},void 0,!1,{fileName:os,lineNumber:45,columnNumber:21},this)},void 0,!1,{fileName:os,lineNumber:44,columnNumber:19},this)]},void 0,!0,{fileName:os,lineNumber:42,columnNumber:17},this),i&&C(f$,{image:o,styleClass:"img2img-metadata"},void 0,!1,{fileName:os,lineNumber:49,columnNumber:19},this)]},void 0,!0,{fileName:os,lineNumber:41,columnNumber:15},this)]},void 0,!0):C("div",{className:"image-to-image-single-preview",children:C(mD,{},void 0,!1,{fileName:os,lineNumber:58,columnNumber:15},this)},void 0,!1,{fileName:os,lineNumber:57,columnNumber:13},this)},void 0,!1):C("div",{className:"upload-image",children:C(bbe,{label:"Upload or Drop Image Here",icon:C(Cge,{},void 0,!1,{fileName:os,lineNumber:66,columnNumber:19},this),styleClass:"image-to-image-upload-btn",dispatcher:N0e},void 0,!1,{fileName:os,lineNumber:64,columnNumber:11},this)},void 0,!1,{fileName:os,lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:os,lineNumber:28,columnNumber:5},this)}var wbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/re-resizable/lib/resizer.js",_be=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(i[u]=o[u])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),hi=globalThis&&globalThis.__assign||function(){return hi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n"u"?void 0:Number(i),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof u>"u"?void 0:Number(u),minHeight:typeof c>"u"?void 0:Number(c)}},Obe=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],yD="__resizable_base__",d$=function(e){Rbe(t,e);function t(n){var i=e.call(this,n)||this;return i.ratio=1,i.resizable=null,i.parentLeft=0,i.parentTop=0,i.resizableLeft=0,i.resizableRight=0,i.resizableTop=0,i.resizableBottom=0,i.targetLeft=0,i.targetTop=0,i.appendBase=function(){if(!i.resizable||!i.window)return null;var o=i.parentNode;if(!o)return null;var u=i.window.document.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.position="absolute",u.style.transform="scale(0, 0)",u.style.left="0",u.style.flex="0 0 100%",u.classList?u.classList.add(yD):u.className+=yD,o.appendChild(u),u},i.removeBase=function(o){var u=i.parentNode;!u||u.removeChild(o)},i.ref=function(o){o&&(i.resizable=o)},i.state={isResizing:!1,width:typeof(i.propsSize&&i.propsSize.width)>"u"?"auto":i.propsSize&&i.propsSize.width,height:typeof(i.propsSize&&i.propsSize.height)>"u"?"auto":i.propsSize&&i.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},i.onResizeStart=i.onResizeStart.bind(i),i.onMouseMove=i.onMouseMove.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Abe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,i=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,u=this.resizable.offsetHeight,c=this.resizable.style.position;c!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:u,this.resizable.style.position=c}return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,i=this.props.size,o=function(p){if(typeof n.state[p]>"u"||n.state[p]==="auto")return"auto";if(n.propsSize&&n.propsSize[p]&&n.propsSize[p].toString().endsWith("%")){if(n.state[p].toString().endsWith("%"))return n.state[p].toString();var h=n.getParentSize(),v=Number(n.state[p].toString().replace("px","")),b=v/h[p]*100;return b+"%"}return Y6(n.state[p])},u=i&&typeof i.width<"u"&&!this.state.isResizing?Y6(i.width):o("width"),c=i&&typeof i.height<"u"&&!this.state.isResizing?Y6(i.height):o("height");return{width:u,height:c}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var i=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var u={width:n.offsetWidth,height:n.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(n),u},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,i){var o=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===n&&(typeof o>"u"||o==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,i){var o=this.props.boundsByDirection,u=this.state.direction,c=o&&Zh("left",u),p=o&&Zh("top",u),h,v;if(this.props.bounds==="parent"){var b=this.parentNode;b&&(h=c?this.resizableRight-this.parentLeft:b.offsetWidth+(this.parentLeft-this.resizableLeft),v=p?this.resizableBottom-this.parentTop:b.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(h=c?this.resizableRight:this.window.innerWidth-this.resizableLeft,v=p?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(h=c?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),v=p?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return h&&Number.isFinite(h)&&(n=n&&n"u"?10:u.width,x=typeof o.width>"u"||o.width<0?n:o.width,N=typeof u.height>"u"?10:u.height,_=typeof o.height>"u"||o.height<0?i:o.height,T=h||0,A=v||0;if(p){var M=(N-T)*this.ratio+A,z=(_-T)*this.ratio+A,P=(b-A)/this.ratio+T,I=(x-A)/this.ratio+T,F=Math.max(b,M),$=Math.min(x,z),Y=Math.max(N,P),Z=Math.min(_,I);n=p4(n,F,$),i=p4(i,Y,Z)}else n=p4(n,b,x),i=p4(i,N,_);return{newWidth:n,newHeight:i}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left,this.parentTop=i.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var u=this.resizable.getBoundingClientRect(),c=u.left,p=u.top,h=u.right,v=u.bottom;this.resizableLeft=c,this.resizableRight=h,this.resizableTop=p,this.resizableBottom=v}},t.prototype.onResizeStart=function(n,i){if(!(!this.resizable||!this.window)){var o=0,u=0;if(n.nativeEvent&&kbe(n.nativeEvent)?(o=n.nativeEvent.clientX,u=n.nativeEvent.clientY):n.nativeEvent&&m4(n.nativeEvent)&&(o=n.nativeEvent.touches[0].clientX,u=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var c=this.props.onResizeStart(n,i,this.resizable);if(c===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var p,h=this.window.getComputedStyle(this.resizable);if(h.flexBasis!=="auto"){var v=this.parentNode;if(v){var b=this.window.getComputedStyle(v).flexDirection;this.flexDir=b.startsWith("row")?"row":"column",p=h.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var x={original:{x:o,y:u,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Su(Su({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:i,flexBasis:p};this.setState(x)}},t.prototype.onMouseMove=function(n){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&m4(n))try{n.preventDefault(),n.stopPropagation()}catch{}var o=this.props,u=o.maxWidth,c=o.maxHeight,p=o.minWidth,h=o.minHeight,v=m4(n)?n.touches[0].clientX:n.clientX,b=m4(n)?n.touches[0].clientY:n.clientY,x=this.state,N=x.direction,_=x.original,T=x.width,A=x.height,M=this.getParentSize(),z=Lbe(M,this.window.innerWidth,this.window.innerHeight,u,c,p,h);u=z.maxWidth,c=z.maxHeight,p=z.minWidth,h=z.minHeight;var P=this.calculateNewSizeFromDirection(v,b),I=P.newHeight,F=P.newWidth,$=this.calculateNewMaxFromBoundary(u,c);this.props.snap&&this.props.snap.x&&(F=bD(F,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(I=bD(I,this.props.snap.y,this.props.snapGap));var Y=this.calculateNewSizeFromAspectRatio(F,I,{width:$.maxWidth,height:$.maxHeight},{width:p,height:h});if(F=Y.newWidth,I=Y.newHeight,this.props.grid){var Z=gD(F,this.props.grid[0]),ue=gD(I,this.props.grid[1]),ce=this.props.snapGap||0;F=ce===0||Math.abs(Z-F)<=ce?Z:F,I=ce===0||Math.abs(ue-I)<=ce?ue:I}var le={width:F-_.width,height:I-_.height};if(T&&typeof T=="string"){if(T.endsWith("%")){var ge=F/M.width*100;F=ge+"%"}else if(T.endsWith("vw")){var Ye=F/this.window.innerWidth*100;F=Ye+"vw"}else if(T.endsWith("vh")){var re=F/this.window.innerHeight*100;F=re+"vh"}}if(A&&typeof A=="string"){if(A.endsWith("%")){var ge=I/M.height*100;I=ge+"%"}else if(A.endsWith("vw")){var Ye=I/this.window.innerWidth*100;I=Ye+"vw"}else if(A.endsWith("vh")){var re=I/this.window.innerHeight*100;I=re+"vh"}}var ie={width:this.createSizeForCssProperty(F,"width"),height:this.createSizeForCssProperty(I,"height")};this.flexDir==="row"?ie.flexBasis=ie.width:this.flexDir==="column"&&(ie.flexBasis=ie.height),Rv.exports.flushSync(function(){i.setState(ie)}),this.props.onResize&&this.props.onResize(n,N,this.resizable,le)}},t.prototype.onMouseUp=function(n){var i=this.state,o=i.isResizing,u=i.direction,c=i.original;if(!(!o||!this.resizable)){var p={width:this.size.width-c.width,height:this.size.height-c.height};this.props.onResizeStop&&this.props.onResizeStop(n,u,this.resizable,p),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Su(Su({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){this.setState({width:n.width,height:n.height})},t.prototype.renderResizer=function(){var n=this,i=this.props,o=i.enable,u=i.handleStyles,c=i.handleClasses,p=i.handleWrapperStyle,h=i.handleWrapperClass,v=i.handleComponent;if(!o)return null;var b=Object.keys(o).map(function(x){return o[x]!==!1?C(Tbe,{direction:x,onResizeStart:n.onResizeStart,replaceStyles:u&&u[x],className:c&&c[x],children:v&&v[x]?v[x]:null},x,!1,{fileName:d4,lineNumber:704,columnNumber:25},this):null});return C("div",{className:h,style:p,children:b},void 0,!1,{fileName:d4,lineNumber:709,columnNumber:17},this)},t.prototype.render=function(){var n=this,i=Object.keys(this.props).reduce(function(c,p){return Obe.indexOf(p)!==-1||(c[p]=n.props[p]),c},{}),o=Su(Su(Su({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var u=this.props.as||"div";return C(u,{...Su({ref:this.ref,style:o,className:this.props.className},i),children:[this.state.isResizing&&C("div",{style:this.state.backgroundStyle},void 0,!1,{fileName:d4,lineNumber:726,columnNumber:38},this),this.props.children,this.renderResizer()]},void 0,!0,{fileName:d4,lineNumber:725,columnNumber:17},this)},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(k.exports.PureComponent),SD="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-masonry-css/dist/react-masonry-css.module.js";function Mbe(e,t){if(e==null)return{};var n=Dbe(e,t),i,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function Dbe(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,u;for(u=0;u=0)&&(n[o]=e[o]);return n}function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function sg(e){for(var t=1;t{this.reCalculateColumnCount()})}reCalculateColumnCount(){const t=window&&window.innerWidth||1/0;let n=this.props.breakpointCols;typeof n!="object"&&(n={default:parseInt(n)||q6});let i=1/0,o=n.default||q6;for(let u in n){const c=parseInt(u);c>0&&t<=c&&c"u"&&(c="my-masonry-grid_column"));const p=sg(sg(sg({},t),n),{},{style:sg(sg({},n.style),{},{width:u}),className:c});return o.map((h,v)=>k.exports.createElement("div",{...p,key:v,__self:this,__source:{fileName:SD,lineNumber:167,columnNumber:27}},h))}logDeprecated(t){console.error("[Masonry]",t)}render(){const t=this.props,{children:n,breakpointCols:i,columnClassName:o,columnAttrs:u,column:c,className:p}=t,h=Mbe(t,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let v=p;return typeof p!="string"&&(this.logDeprecated('The property "className" requires a string'),typeof p>"u"&&(v="my-masonry-grid")),C("div",{...h,className:v,children:this.renderColumns()},void 0,!1,{fileName:SD,lineNumber:201,columnNumber:25},this)}}p$.defaultProps=Ibe;var Qi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const Fbe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,zbe=k.exports.memo(e=>{const[t,n]=k.exports.useState(!1),i=Sn(),o=gt(M=>M.options.activeTab),{image:u,isSelected:c}=e,{url:p,uuid:h,metadata:v}=u,b=()=>n(!0),x=()=>n(!1),N=M=>{M.stopPropagation(),i(rU(v))},_=M=>{M.stopPropagation(),i(Tb(u.metadata.image.seed))},T=M=>{M.stopPropagation(),i(Tv(u.url)),o!==1&&i(Rc(1))};return C(Xs,{position:"relative",className:"hoverable-image",onMouseOver:b,onMouseOut:x,children:[C(XS,{objectFit:"cover",rounded:"md",src:p,loading:"lazy",className:"hoverable-image-image"},void 0,!1,{fileName:Qi,lineNumber:71,columnNumber:7},void 0),C("div",{className:"hoverable-image-content",onClick:()=>i(ove(u)),children:c&&C(ms,{width:"50%",height:"50%",as:pge,className:"hoverable-image-check"},void 0,!1,{fileName:Qi,lineNumber:80,columnNumber:11},void 0)},void 0,!1,{fileName:Qi,lineNumber:78,columnNumber:7},void 0),t&&C("div",{className:"hoverable-image-icons",children:[C(Ca,{label:"Delete image",hasArrow:!0,children:C(a$,{image:u,children:C(bi,{colorScheme:"red","aria-label":"Delete image",icon:C(xge,{},void 0,!1,{fileName:Qi,lineNumber:95,columnNumber:23},void 0),size:"xs",variant:"imageHoverIconButton",fontSize:14},void 0,!1,{fileName:Qi,lineNumber:92,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:91,columnNumber:13},void 0)},void 0,!1,{fileName:Qi,lineNumber:90,columnNumber:11},void 0),["txt2img","img2img"].includes(u?.metadata?.image?.type)&&C(Ca,{label:"Use All Parameters",hasArrow:!0,children:C(bi,{"aria-label":"Use All Parameters",icon:C(c$,{},void 0,!1,{fileName:Qi,lineNumber:106,columnNumber:23},void 0),size:"xs",fontSize:18,variant:"imageHoverIconButton",onClickCapture:N},void 0,!1,{fileName:Qi,lineNumber:104,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:103,columnNumber:13},void 0),u?.metadata?.image?.seed!==void 0&&C(Ca,{label:"Use Seed",hasArrow:!0,children:C(bi,{"aria-label":"Use Seed",icon:C(yge,{},void 0,!1,{fileName:Qi,lineNumber:118,columnNumber:23},void 0),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:_},void 0,!1,{fileName:Qi,lineNumber:116,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:115,columnNumber:13},void 0),C(Ca,{label:"Send To Image To Image",hasArrow:!0,children:C(bi,{"aria-label":"Send To Image To Image",icon:C(vge,{},void 0,!1,{fileName:Qi,lineNumber:129,columnNumber:21},void 0),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:T},void 0,!1,{fileName:Qi,lineNumber:127,columnNumber:13},void 0)},void 0,!1,{fileName:Qi,lineNumber:126,columnNumber:11},void 0)]},void 0,!0,{fileName:Qi,lineNumber:89,columnNumber:9},void 0)]},h,!0,{fileName:Qi,lineNumber:64,columnNumber:5},void 0)},Fbe);var uo="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";function m$(){const{images:e,currentImageUuid:t,areMoreImagesAvailable:n}=gt(N=>N.gallery),i=gt(N=>N.options.shouldShowGallery),o=gt(N=>N.options.activeTab),u=Sn(),[c,p]=k.exports.useState(),h=N=>{p(Math.floor((window.innerWidth-N.x)/120))},v=()=>{u(CM(!i))},b=()=>{u(CM(!1))},x=()=>{u(wU())};return ii("g",()=>{v()},[i]),ii("left",()=>{u(oU())},[]),ii("right",()=>{u(aU())},[]),C("div",{className:"image-gallery-area",children:[!i&&C(Wp,{tooltip:"Show Gallery",tooltipPlacement:"top","aria-label":"Show Gallery",onClick:v,className:"image-gallery-popup-btn",children:C(GM,{},void 0,!1,{fileName:uo,lineNumber:82,columnNumber:11},this)},void 0,!1,{fileName:uo,lineNumber:75,columnNumber:9},this),i&&C(d$,{defaultSize:{width:"300",height:"100%"},minWidth:"300",maxWidth:o==1?"300":"600",className:"image-gallery-popup",onResize:h,children:[C("div",{className:"image-gallery-header",children:[C("h1",{children:"Your Invocations"},void 0,!1,{fileName:uo,lineNumber:96,columnNumber:13},this),C(bi,{size:"sm","aria-label":"Close Gallery",onClick:b,className:"image-gallery-close-btn",icon:C(jU,{},void 0,!1,{fileName:uo,lineNumber:102,columnNumber:21},this)},void 0,!1,{fileName:uo,lineNumber:97,columnNumber:13},this)]},void 0,!0,{fileName:uo,lineNumber:95,columnNumber:11},this),C("div",{className:"image-gallery-container",children:[e.length?C(p$,{className:"masonry-grid",columnClassName:"masonry-grid_column",breakpointCols:c,children:e.map(N=>{const{uuid:_}=N;return C(zbe,{image:N,isSelected:t===_},_,!1,{fileName:uo,lineNumber:117,columnNumber:21},this)})},void 0,!1,{fileName:uo,lineNumber:107,columnNumber:15},this):C("div",{className:"image-gallery-container-placeholder",children:[C(GM,{},void 0,!1,{fileName:uo,lineNumber:128,columnNumber:17},this),C("p",{children:"No Images In Gallery"},void 0,!1,{fileName:uo,lineNumber:129,columnNumber:17},this)]},void 0,!0,{fileName:uo,lineNumber:127,columnNumber:15},this),C(Du,{onClick:x,isDisabled:!n,className:"image-gallery-load-more-btn",children:n?"Load More":"All Images Loaded"},void 0,!1,{fileName:uo,lineNumber:132,columnNumber:13},this)]},void 0,!0,{fileName:uo,lineNumber:105,columnNumber:11},this)]},void 0,!0,{fileName:uo,lineNumber:87,columnNumber:9},this)]},void 0,!0,{fileName:uo,lineNumber:73,columnNumber:5},this)}var lg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImage.tsx";function Bbe(){const e=gt(t=>t.options.shouldShowGallery);return C("div",{className:"image-to-image-workarea",children:[C(sge,{},void 0,!1,{fileName:lg,lineNumber:14,columnNumber:7},this),C("div",{className:"image-to-image-display-area",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[C(Nbe,{},void 0,!1,{fileName:lg,lineNumber:23,columnNumber:9},this),C(m$,{},void 0,!1,{fileName:lg,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:lg,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:lg,lineNumber:13,columnNumber:5},this)}var ja="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImagePanel.tsx";function Ube(){const e=gt(n=>n.options.showAdvancedOptions),t={seed:{header:C(Xs,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:ja,lineNumber:29,columnNumber:9},this),feature:zl.SEED,options:C(MU,{},void 0,!1,{fileName:ja,lineNumber:34,columnNumber:16},this)},variations:{header:C(PU,{},void 0,!1,{fileName:ja,lineNumber:37,columnNumber:15},this),feature:zl.VARIATIONS,options:C(IU,{},void 0,!1,{fileName:ja,lineNumber:39,columnNumber:16},this)},face_restore:{header:C(OU,{},void 0,!1,{fileName:ja,lineNumber:42,columnNumber:15},this),feature:zl.FACE_CORRECTION,options:C(DE,{},void 0,!1,{fileName:ja,lineNumber:44,columnNumber:16},this)},upscale:{header:C(DU,{},void 0,!1,{fileName:ja,lineNumber:47,columnNumber:15},this),feature:zl.UPSCALE,options:C(PE,{},void 0,!1,{fileName:ja,lineNumber:49,columnNumber:16},this)},other:{header:C(Xs,{flex:"1",textAlign:"left",children:"Other"},void 0,!1,{fileName:ja,lineNumber:58,columnNumber:9},this),feature:zl.OTHER,options:C(HU,{},void 0,!1,{fileName:ja,lineNumber:63,columnNumber:16},this)}};return C("div",{className:"text-to-image-panel",children:[C(YU,{},void 0,!1,{fileName:ja,lineNumber:69,columnNumber:7},this),C(GU,{},void 0,!1,{fileName:ja,lineNumber:70,columnNumber:7},this),C(zU,{},void 0,!1,{fileName:ja,lineNumber:71,columnNumber:7},this),C(FU,{},void 0,!1,{fileName:ja,lineNumber:72,columnNumber:7},this),e?C(VU,{accordionInfo:t},void 0,!1,{fileName:ja,lineNumber:74,columnNumber:9},this):null]},void 0,!0,{fileName:ja,lineNumber:68,columnNumber:5},this)}var Bp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const $be=()=>{const{currentImage:e,intermediateImage:t}=gt(o=>o.gallery),n=gt(o=>o.options.shouldShowImageDetails),i=t||e;return i?C("div",{className:"current-image-display",children:[C("div",{className:"current-image-tools",children:C(o$,{image:i},void 0,!1,{fileName:Bp,lineNumber:24,columnNumber:9},void 0)},void 0,!1,{fileName:Bp,lineNumber:23,columnNumber:7},void 0),C(s$,{imageToDisplay:i},void 0,!1,{fileName:Bp,lineNumber:26,columnNumber:7},void 0),n&&C(f$,{image:i,styleClass:"current-image-metadata"},void 0,!1,{fileName:Bp,lineNumber:28,columnNumber:9},void 0)]},void 0,!0,{fileName:Bp,lineNumber:22,columnNumber:5},void 0):C("div",{className:"current-image-display-placeholder",children:C(Z1e,{},void 0,!1,{fileName:Bp,lineNumber:36,columnNumber:7},void 0)},void 0,!1,{fileName:Bp,lineNumber:35,columnNumber:5},void 0)};var ug="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImage.tsx";function jbe(){const e=gt(t=>t.options.shouldShowGallery);return C("div",{className:"text-to-image-workarea",children:[C(Ube,{},void 0,!1,{fileName:ug,lineNumber:14,columnNumber:7},this),C("div",{className:"text-to-image-display",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[C($be,{},void 0,!1,{fileName:ug,lineNumber:23,columnNumber:9},this),C(m$,{},void 0,!1,{fileName:ug,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:ug,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:ug,lineNumber:13,columnNumber:5},this)}var Ji="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/InvokeTabs.tsx";const Qh={txt2img:{title:C(n1e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:22,columnNumber:12},void 0),panel:C(jbe,{},void 0,!1,{fileName:Ji,lineNumber:23,columnNumber:12},void 0),tooltip:"Text To Image"},img2img:{title:C(Y0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:27,columnNumber:12},void 0),panel:C(Bbe,{},void 0,!1,{fileName:Ji,lineNumber:28,columnNumber:12},void 0),tooltip:"Image To Image"},inpainting:{title:C(Z0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:32,columnNumber:12},void 0),panel:C(V0e,{},void 0,!1,{fileName:Ji,lineNumber:33,columnNumber:12},void 0),tooltip:"Inpainting"},outpainting:{title:C(J0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:37,columnNumber:12},void 0),panel:C(W0e,{},void 0,!1,{fileName:Ji,lineNumber:38,columnNumber:12},void 0),tooltip:"Outpainting"},nodes:{title:C(X0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:42,columnNumber:12},void 0),panel:C(H0e,{},void 0,!1,{fileName:Ji,lineNumber:43,columnNumber:12},void 0),tooltip:"Nodes"},postprocess:{title:C(t1e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:47,columnNumber:12},void 0),panel:C(G0e,{},void 0,!1,{fileName:Ji,lineNumber:48,columnNumber:12},void 0),tooltip:"Post Processing"}},Vbe=tb.map(Qh,(e,t)=>t);function Hbe(){const e=gt(o=>o.options.activeTab),t=Sn();ii("1",()=>{t(Rc(0))}),ii("2",()=>{t(Rc(1))}),ii("3",()=>{t(Rc(2))}),ii("4",()=>{t(Rc(3))}),ii("5",()=>{t(Rc(4))}),ii("6",()=>{t(Rc(5))});const n=()=>{const o=[];return Object.keys(Qh).forEach(u=>{o.push(C(Ca,{hasArrow:!0,label:Qh[u].tooltip,placement:"right",children:C(Hz,{children:Qh[u].title},void 0,!1,{fileName:Ji,lineNumber:95,columnNumber:11},this)},u,!1,{fileName:Ji,lineNumber:89,columnNumber:9},this))}),o},i=()=>{const o=[];return Object.keys(Qh).forEach(u=>{o.push(C(jz,{className:"app-tabs-panel",children:Qh[u].panel},u,!1,{fileName:Ji,lineNumber:106,columnNumber:9},this))}),o};return C($z,{isLazy:!0,className:"app-tabs",variant:"unstyled",defaultIndex:e,index:e,onChange:o=>{t(Rc(o))},children:[C("div",{className:"app-tabs-list",children:n()},void 0,!1,{fileName:Ji,lineNumber:125,columnNumber:7},this),C(Vz,{className:"app-tabs-panels",children:i()},void 0,!1,{fileName:Ji,lineNumber:126,columnNumber:7},this)]},void 0,!0,{fileName:Ji,lineNumber:115,columnNumber:5},this)}const Wbe=(e,t)=>{const{dispatch:n,getState:i}=e;return{emitGenerateImage:()=>{n(M4(!0));const o={...i().options};Vbe[o.activeTab]==="txt2img"&&(o.shouldUseInitImage=!1);const{generationParameters:u,esrganParameters:c,facetoolParameters:p}=L0e(o,i().system);t.emit("generateImage",u,c,p),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...u,...c,...p})}`}))},emitRunESRGAN:o=>{n(M4(!0));const{upscalingLevel:u,upscalingStrength:c}=i().options,p={upscale:[u,c]};t.emit("runPostprocessing",o,{type:"esrgan",...p}),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...p})}`}))},emitRunFacetool:o=>{n(M4(!0));const{facetoolType:u,facetoolStrength:c,codeformerFidelity:p}=i().options,h={facetool_strength:c};u==="codeformer"&&(h.codeformer_fidelity=p),t.emit("runPostprocessing",o,{type:u,...h}),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Face restoration (${u}) requested: ${JSON.stringify({file:o.url,...h})}`}))},emitDeleteImage:o=>{const{url:u,uuid:c}=o;t.emit("deleteImage",u,c)},emitRequestImages:()=>{const{earliest_mtime:o}=i().gallery;t.emit("requestImages",o)},emitRequestNewImages:()=>{const{latest_mtime:o}=i().gallery;t.emit("requestLatestImages",o)},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")}}},Gbe=()=>{const{origin:e}=new URL(window.location.href),t=I4(e,{timeout:6e4});let n=!1;return o=>u=>c=>{const{onConnect:p,onDisconnect:h,onError:v,onPostprocessingResult:b,onGenerationResult:x,onIntermediateResult:N,onProgressUpdate:_,onGalleryImages:T,onProcessingCanceled:A,onImageDeleted:M,onInitialImageUploaded:z,onMaskImageUploaded:P,onSystemConfig:I}=_0e(o),{emitGenerateImage:F,emitRunESRGAN:$,emitRunFacetool:Y,emitDeleteImage:Z,emitRequestImages:ue,emitRequestNewImages:ce,emitCancelProcessing:le,emitUploadInitialImage:ge,emitUploadMaskImage:Ye,emitRequestSystemConfig:re}=Wbe(o,t);switch(n||(t.on("connect",()=>p()),t.on("disconnect",()=>h()),t.on("error",ie=>v(ie)),t.on("generationResult",ie=>x(ie)),t.on("postprocessingResult",ie=>b(ie)),t.on("intermediateResult",ie=>N(ie)),t.on("progressUpdate",ie=>_(ie)),t.on("galleryImages",ie=>T(ie)),t.on("processingCanceled",()=>{A()}),t.on("imageDeleted",ie=>{M(ie)}),t.on("initialImageUploaded",ie=>{z(ie)}),t.on("maskImageUploaded",ie=>{P(ie)}),t.on("systemConfig",ie=>{I(ie)}),n=!0),c.type){case"socketio/generateImage":{F();break}case"socketio/runESRGAN":{$(c.payload);break}case"socketio/runFacetool":{Y(c.payload);break}case"socketio/deleteImage":{Z(c.payload);break}case"socketio/requestImages":{ue();break}case"socketio/requestNewImages":{ce();break}case"socketio/cancelProcessing":{le();break}case"socketio/uploadInitialImage":{ge(c.payload);break}case"socketio/uploadMaskImage":{Ye(c.payload);break}case"socketio/requestSystemConfig":{re();break}}u(c)}},Ybe={key:"root",storage:TE,blacklist:["gallery","system"]},qbe={key:"system",storage:TE,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},Zbe=yB({options:rve,gallery:uve,system:$B(qbe,yve)}),Kbe=$B(Ybe,Zbe),h$=Yme({reducer:Kbe,middleware:e=>e({serializableCheck:!1}).concat(Gbe())}),Sn=mhe,gt=ihe;function z4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z4=function(n){return typeof n}:z4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},z4(e)}function Xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CD(e,t){for(var n=0;n({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}});var wD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/Loading.tsx";const g$=()=>C(Sr,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:C(ZS,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:wD,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:wD,lineNumber:5,columnNumber:9},void 0);var tye="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/ProgressBar.tsx";const nye=Ga(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),rye=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:i}=gt(nye),o=t?Math.round(t*100/n):0;return C(Dz,{height:"4px",value:o,isIndeterminate:e&&!i,className:"progress-bar"},void 0,!1,{fileName:tye,lineNumber:30,columnNumber:5},void 0)},iye="/assets/logo.13003d72.png";var cg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModalItem.tsx";function aye(e){const{title:t,hotkey:n,description:i}=e;return C("div",{className:"hotkey-modal-item",children:[C("div",{className:"hotkey-info",children:[C("p",{className:"hotkey-title",children:t},void 0,!1,{fileName:cg,lineNumber:14,columnNumber:9},this),i&&C("p",{className:"hotkey-description",children:i},void 0,!1,{fileName:cg,lineNumber:15,columnNumber:25},this)]},void 0,!0,{fileName:cg,lineNumber:13,columnNumber:7},this),C("div",{className:"hotkey-key",children:n},void 0,!1,{fileName:cg,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:cg,lineNumber:12,columnNumber:5},this)}var Up="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModal.tsx";function oye({children:e}){const{isOpen:t,onOpen:n,onClose:i}=sS(),o=[{title:"Invoke",desc:"Generate an image",hotkey:"Ctrl+Enter"},{title:"Cancel",desc:"Cancel image generation",hotkey:"Shift+X"},{title:"Toggle Gallery",desc:"Open and close the gallery drawer",hotkey:"G"},{title:"Set Seed",desc:"Use the seed of the current image",hotkey:"S"},{title:"Set Parameters",desc:"Use all parameters of the current image",hotkey:"A"},{title:"Restore Faces",desc:"Restore the current image",hotkey:"R"},{title:"Upscale",desc:"Upscale the current image",hotkey:"U"},{title:"Show Info",desc:"Show metadata info of the current image",hotkey:"I"},{title:"Send To Image To Image",desc:"Send the current image to Image to Image module",hotkey:"Shift+I"},{title:"Delete Image",desc:"Delete the current image",hotkey:"Del"},{title:"Focus Prompt",desc:"Focus the prompt input area",hotkey:"Alt+A"},{title:"Previous Image",desc:"Display the previous image in the gallery",hotkey:"Arrow left"},{title:"Next Image",desc:"Display the next image in the gallery",hotkey:"Arrow right"},{title:"Change Tabs",desc:"Switch to another workspace",hotkey:"1-6"},{title:"Theme Toggle",desc:"Switch between dark and light modes",hotkey:"Shift+D"},{title:"Console Toggle",desc:"Open and close console",hotkey:"`"}],u=()=>{const c=[];return o.forEach((p,h)=>{c.push(C(aye,{title:p.title,description:p.desc,hotkey:p.hotkey},h,!1,{fileName:Up,lineNumber:91,columnNumber:9},this))}),c};return C(Ui,{children:[k.exports.cloneElement(e,{onClick:n}),C(wv,{isOpen:t,onClose:i,children:[C(Kg,{},void 0,!1,{fileName:Up,lineNumber:109,columnNumber:9},this),C(Zg,{className:"hotkeys-modal",children:[C(tE,{},void 0,!1,{fileName:Up,lineNumber:111,columnNumber:11},this),C("h1",{children:"Keyboard Shorcuts"},void 0,!1,{fileName:Up,lineNumber:112,columnNumber:11},this),C("div",{className:"hotkeys-modal-items",children:u()},void 0,!1,{fileName:Up,lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:Up,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:Up,lineNumber:108,columnNumber:7},this)]},void 0,!0)}var Z6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModalItem.tsx";function K6({settingTitle:e,isChecked:t,dispatcher:n}){const i=Sn();return C(fd,{className:"settings-modal-item",children:[C(sm,{marginBottom:1,children:e},void 0,!1,{fileName:Z6,lineNumber:17,columnNumber:7},this),C(s3,{isChecked:t,onChange:o=>i(n(o.target.checked))},void 0,!1,{fileName:Z6,lineNumber:18,columnNumber:7},this)]},void 0,!0,{fileName:Z6,lineNumber:16,columnNumber:5},this)}var $r="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModal.tsx";const sye=Ga(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}},{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),lye=({children:e})=>{const{isOpen:t,onOpen:n,onClose:i}=sS(),{isOpen:o,onOpen:u,onClose:c}=sS(),{shouldDisplayInProgress:p,shouldConfirmOnDelete:h,shouldDisplayGuides:v}=gt(sye),b=()=>{b$.purge().then(()=>{i(),u()})};return C(Ui,{children:[k.exports.cloneElement(e,{onClick:n}),C(wv,{isOpen:t,onClose:i,children:[C(Kg,{},void 0,!1,{fileName:$r,lineNumber:95,columnNumber:9},void 0),C(Zg,{className:"settings-modal",children:[C(rE,{className:"settings-modal-header",children:"Settings"},void 0,!1,{fileName:$r,lineNumber:97,columnNumber:11},void 0),C(tE,{},void 0,!1,{fileName:$r,lineNumber:98,columnNumber:11},void 0),C(fS,{className:"settings-modal-content",children:[C("div",{className:"settings-modal-items",children:[C(K6,{settingTitle:"Display In-Progress Images (slower)",isChecked:p,dispatcher:dve},void 0,!1,{fileName:$r,lineNumber:101,columnNumber:15},void 0),C(K6,{settingTitle:"Confirm on Delete",isChecked:h,dispatcher:lU},void 0,!1,{fileName:$r,lineNumber:107,columnNumber:15},void 0),C(K6,{settingTitle:"Display Help Icons",isChecked:v,dispatcher:vve},void 0,!1,{fileName:$r,lineNumber:113,columnNumber:15},void 0)]},void 0,!0,{fileName:$r,lineNumber:100,columnNumber:13},void 0),C("div",{className:"settings-modal-reset",children:[C(P_,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:$r,lineNumber:121,columnNumber:15},void 0),C(Oo,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."},void 0,!1,{fileName:$r,lineNumber:122,columnNumber:15},void 0),C(Oo,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."},void 0,!1,{fileName:$r,lineNumber:127,columnNumber:15},void 0),C(Du,{colorScheme:"red",onClick:b,children:"Reset Web UI"},void 0,!1,{fileName:$r,lineNumber:132,columnNumber:15},void 0)]},void 0,!0,{fileName:$r,lineNumber:120,columnNumber:13},void 0)]},void 0,!0,{fileName:$r,lineNumber:99,columnNumber:11},void 0),C(nE,{children:C(Du,{onClick:i,children:"Close"},void 0,!1,{fileName:$r,lineNumber:139,columnNumber:13},void 0)},void 0,!1,{fileName:$r,lineNumber:138,columnNumber:11},void 0)]},void 0,!0,{fileName:$r,lineNumber:96,columnNumber:9},void 0)]},void 0,!0,{fileName:$r,lineNumber:94,columnNumber:7},void 0),C(wv,{closeOnOverlayClick:!1,isOpen:o,onClose:c,isCentered:!0,children:[C(Kg,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:$r,lineNumber:150,columnNumber:9},void 0),C(Zg,{children:C(fS,{pb:6,pt:6,children:C(Sr,{justifyContent:"center",children:C(Oo,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:$r,lineNumber:154,columnNumber:15},void 0)},void 0,!1,{fileName:$r,lineNumber:153,columnNumber:13},void 0)},void 0,!1,{fileName:$r,lineNumber:152,columnNumber:11},void 0)},void 0,!1,{fileName:$r,lineNumber:151,columnNumber:9},void 0)]},void 0,!0,{fileName:$r,lineNumber:144,columnNumber:7},void 0)]},void 0,!0)};var _D="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/StatusIndicator.tsx";const uye=Ga(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),cye=()=>{const{isConnected:e,isProcessing:t,currentIteration:n,totalIterations:i,currentStatus:o,hasError:u,wasErrorSeen:c}=gt(uye),p=Sn();let h;e&&!u?h="status-good":h="status-bad";let v=o;return["generating","preparing","saving image","restoring faces","upscaling"].includes(v.toLowerCase())&&(h="status-working"),v&&t&&i>1&&(v+=` (${n}/${i})`),C(Ca,{label:u&&!c?"Click to clear, check logs for details":void 0,children:C(Oo,{cursor:u&&!c?"pointer":"initial",onClick:()=>{(u||!c)&&p(uU())},className:`status ${h}`,children:v},void 0,!1,{fileName:_D,lineNumber:83,columnNumber:7},void 0)},void 0,!1,{fileName:_D,lineNumber:82,columnNumber:5},void 0)};var ur="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SiteHeader.tsx";const fye=()=>{const{colorMode:e,toggleColorMode:t}=z8();ii("shift+d",()=>{t()},[e,t]);const n=e=="light"?C(bge,{},void 0,!1,{fileName:ur,lineNumber:27,columnNumber:48},void 0):C(Sge,{},void 0,!1,{fileName:ur,lineNumber:27,columnNumber:61},void 0),i=e=="light"?18:20;return C("div",{className:"site-header",children:[C("div",{className:"site-header-left-side",children:[C("img",{src:iye,alt:"invoke-ai-logo"},void 0,!1,{fileName:ur,lineNumber:35,columnNumber:9},void 0),C("h1",{children:["invoke ",C("strong",{children:"ai"},void 0,!1,{fileName:ur,lineNumber:37,columnNumber:18},void 0)]},void 0,!0,{fileName:ur,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:ur,lineNumber:34,columnNumber:7},void 0),C("div",{className:"site-header-right-side",children:[C(cye,{},void 0,!1,{fileName:ur,lineNumber:42,columnNumber:9},void 0),C(lye,{children:C(bi,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:C(W1e,{},void 0,!1,{fileName:ur,lineNumber:50,columnNumber:19},void 0)},void 0,!1,{fileName:ur,lineNumber:45,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:44,columnNumber:9},void 0),C(oye,{children:C(bi,{"aria-label":"Hotkeys",variant:"link",fontSize:24,size:"sm",icon:C(Y1e,{},void 0,!1,{fileName:ur,lineNumber:60,columnNumber:19},void 0)},void 0,!1,{fileName:ur,lineNumber:55,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:54,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Report Bug",placement:"bottom",children:C(bi,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:C(cv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI/issues",children:C($U,{},void 0,!1,{fileName:ur,lineNumber:75,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:71,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:65,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:64,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Github",placement:"bottom",children:C(bi,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:C(cv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI",children:C(uge,{},void 0,!1,{fileName:ur,lineNumber:89,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:88,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:82,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:81,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Discord",placement:"bottom",children:C(bi,{"aria-label":"Link to Discord Server",variant:"link",fontSize:20,size:"sm",icon:C(cv,{isExternal:!0,href:"https://discord.gg/ZmtBAhwWhy",children:C(lge,{},void 0,!1,{fileName:ur,lineNumber:103,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:102,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:95,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Theme",placement:"bottom",children:C(bi,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:i,icon:n},void 0,!1,{fileName:ur,lineNumber:110,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:109,columnNumber:9},void 0)]},void 0,!0,{fileName:ur,lineNumber:41,columnNumber:7},void 0)]},void 0,!0,{fileName:ur,lineNumber:33,columnNumber:5},void 0)};var Ys="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/Console.tsx";const dye=Ga(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),pye=Ga(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),mye=()=>{const e=Sn(),t=gt(dye),{shouldShowLogViewer:n,hasError:i,wasErrorSeen:o}=gt(pye),[u,c]=k.exports.useState(!0),p=k.exports.useRef(null);k.exports.useLayoutEffect(()=>{p.current!==null&&u&&(p.current.scrollTop=p.current.scrollHeight)},[u,t,n]);const h=()=>{e(uU()),e(wM(!n))};return ii("`",()=>{e(wM(!n))},[n]),C(Ui,{children:[n&&C(d$,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0},maxHeight:"90vh",children:C("div",{className:"console",ref:p,children:t.map((v,b)=>{const{timestamp:x,message:N,level:_}=v;return C("div",{className:`console-entry console-${_}-color`,children:[C("p",{className:"console-timestamp",children:[x,":"]},void 0,!0,{fileName:Ys,lineNumber:94,columnNumber:19},void 0),C("p",{className:"console-message",children:N},void 0,!1,{fileName:Ys,lineNumber:95,columnNumber:19},void 0)]},b,!0,{fileName:Ys,lineNumber:93,columnNumber:17},void 0)})},void 0,!1,{fileName:Ys,lineNumber:89,columnNumber:11},void 0)},void 0,!1,{fileName:Ys,lineNumber:81,columnNumber:9},void 0),n&&C(Ca,{hasArrow:!0,label:u?"Autoscroll On":"Autoscroll Off",children:C(bi,{className:`console-autoscroll-icon-button ${u&&"autoscroll-enabled"}`,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:C(cge,{},void 0,!1,{fileName:Ys,lineNumber:111,columnNumber:19},void 0),onClick:()=>c(!u)},void 0,!1,{fileName:Ys,lineNumber:104,columnNumber:11},void 0)},void 0,!1,{fileName:Ys,lineNumber:103,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:C(bi,{className:`console-toggle-icon-button ${(i||!o)&&"error-seen"}`,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?C(gge,{},void 0,!1,{fileName:Ys,lineNumber:126,columnNumber:39},void 0):C(mge,{},void 0,!1,{fileName:Ys,lineNumber:126,columnNumber:53},void 0),onClick:h},void 0,!1,{fileName:Ys,lineNumber:117,columnNumber:9},void 0)},void 0,!1,{fileName:Ys,lineNumber:116,columnNumber:7},void 0)]},void 0,!0)};function hye(){async function e(n=""){return await fetch(n,{method:"GET",cache:"no-cache"})}const t=()=>{const n=document.location;e(n+"/flaskwebgui-keep-server-alive").then(o=>o)};(!{BASE_URL:"/",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV||{BASE_URL:"/",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV==="production")&&document.addEventListener("DOMContentLoaded",()=>{t(),setInterval(t,3e3)})}var jf="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/app/App.tsx";hye();const vye=()=>{const e=Sn(),[t,n]=k.exports.useState(!1);return k.exports.useEffect(()=>{e(w0e()),n(!0)},[e]),t?C("div",{className:"App",children:[C(rye,{},void 0,!1,{fileName:jf,lineNumber:24,columnNumber:7},void 0),C("div",{className:"app-content",children:[C(fye,{},void 0,!1,{fileName:jf,lineNumber:26,columnNumber:9},void 0),C(Hbe,{},void 0,!1,{fileName:jf,lineNumber:27,columnNumber:9},void 0)]},void 0,!0,{fileName:jf,lineNumber:25,columnNumber:7},void 0),C("div",{className:"app-console",children:C(mye,{},void 0,!1,{fileName:jf,lineNumber:30,columnNumber:9},void 0)},void 0,!1,{fileName:jf,lineNumber:29,columnNumber:7},void 0)]},void 0,!0,{fileName:jf,lineNumber:23,columnNumber:5},void 0):C(g$,{},void 0,!1,{fileName:jf,lineNumber:34,columnNumber:5},void 0)};var $p="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/main.tsx";const b$=Dhe(h$);Q6.createRoot(document.getElementById("root")).render(C(Ae.StrictMode,{children:C(fhe,{store:h$,children:C(v$,{loading:C(g$,{},void 0,!1,{fileName:$p,lineNumber:21,columnNumber:29},void 0),persistor:b$,children:C(rme,{theme:ND,children:[C(xW,{initialColorMode:ND.config.initialColorMode},void 0,!1,{fileName:$p,lineNumber:23,columnNumber:11},void 0),C(vye,{},void 0,!1,{fileName:$p,lineNumber:24,columnNumber:11},void 0)]},void 0,!0,{fileName:$p,lineNumber:22,columnNumber:9},void 0)},void 0,!1,{fileName:$p,lineNumber:21,columnNumber:7},void 0)},void 0,!1,{fileName:$p,lineNumber:20,columnNumber:5},void 0)},void 0,!1,{fileName:$p,lineNumber:19,columnNumber:3},void 0)); +`+T.message,"");p({title:"Upload failed",description:N,status:"error",isClosable:!0})},[p]);return C(gbe,{fileAcceptedCallback:v,fileRejectionCallback:b,styleClass:o,children:C(Du,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:u,onMouseOut:c,leftIcon:n,width:"100%",children:t||null},void 0,!1,{fileName:fD,lineNumber:52,columnNumber:7},this)},void 0,!1,{fileName:fD,lineNumber:47,columnNumber:5},this)}var Ro="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const ybe=Ga(e=>e.system,e=>e.shouldConfirmOnDelete),a$=k.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:i,onOpen:o,onClose:u}=sS(),c=Sn(),p=gt(ybe),h=k.exports.useRef(null),v=N=>{N.stopPropagation(),p?o():b()},b=()=>{c(S0e(e)),u()};ii("del",()=>{p?o():b()},[e,p]);const x=N=>c(lU(!N.target.checked));return C(Ui,{children:[k.exports.cloneElement(t,{onClick:v,ref:n}),C(doe,{isOpen:i,leastDestructiveRef:h,onClose:u,children:C(Kg,{children:C(poe,{children:[C(rE,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:Ro,lineNumber:98,columnNumber:15},void 0),C(fS,{children:C(Sr,{direction:"column",gap:5,children:[C(Oo,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:Ro,lineNumber:104,columnNumber:19},void 0),C(fd,{children:C(Sr,{alignItems:"center",children:[C(sm,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:Ro,lineNumber:109,columnNumber:23},void 0),C(s3,{checked:!p,onChange:x},void 0,!1,{fileName:Ro,lineNumber:110,columnNumber:23},void 0)]},void 0,!0,{fileName:Ro,lineNumber:108,columnNumber:21},void 0)},void 0,!1,{fileName:Ro,lineNumber:107,columnNumber:19},void 0)]},void 0,!0,{fileName:Ro,lineNumber:103,columnNumber:17},void 0)},void 0,!1,{fileName:Ro,lineNumber:102,columnNumber:15},void 0),C(nE,{children:[C(Du,{ref:h,onClick:u,children:"Cancel"},void 0,!1,{fileName:Ro,lineNumber:119,columnNumber:17},void 0),C(Du,{colorScheme:"red",onClick:b,ml:3,children:"Delete"},void 0,!1,{fileName:Ro,lineNumber:122,columnNumber:17},void 0)]},void 0,!0,{fileName:Ro,lineNumber:118,columnNumber:15},void 0)]},void 0,!0,{fileName:Ro,lineNumber:97,columnNumber:13},void 0)},void 0,!1,{fileName:Ro,lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:Ro,lineNumber:91,columnNumber:9},void 0)]},void 0,!0)});var Fp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/InvokePopover.tsx";const dD=({title:e="Popup",styleClass:t,delay:n=50,popoverOptions:i,actionButton:o,children:u})=>C(aE,{trigger:"hover",closeDelay:n,children:[C(uE,{children:C(Xs,{children:u},void 0,!1,{fileName:Fp,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:Fp,lineNumber:30,columnNumber:7},void 0),C(lE,{className:`popover-content ${t}`,children:[C(oE,{className:"popover-arrow"},void 0,!1,{fileName:Fp,lineNumber:34,columnNumber:9},void 0),C(Mz,{className:"popover-header",children:e},void 0,!1,{fileName:Fp,lineNumber:35,columnNumber:9},void 0),C("div",{className:"popover-options",children:[i||null,o]},void 0,!0,{fileName:Fp,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:Fp,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:Fp,lineNumber:29,columnNumber:5},void 0);var mi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const Sbe=Ga(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),o$=({image:e})=>{const t=Sn(),n=gt(z=>z.options.shouldShowImageDetails),i=cB(),o=gt(z=>z.gallery.intermediateImage),u=gt(z=>z.options.upscalingLevel),c=gt(z=>z.options.facetoolStrength),{isProcessing:p,isConnected:h,isGFPGANAvailable:v,isESRGANAvailable:b}=gt(Sbe),x=()=>{t(Tv(e.url)),t(Rc(1))};ii("shift+i",()=>{e?(x(),i({title:"Sent To Image To Image",status:"success",duration:2500,isClosable:!0})):i({title:"No Image Loaded",description:"No image found to send to image to image module.",status:"error",duration:2500,isClosable:!0})},[e]);const N=()=>t(rU(e.metadata));ii("a",()=>{["txt2img","img2img"].includes(e?.metadata?.image?.type)?(N(),i({title:"Parameters Set",status:"success",duration:2500,isClosable:!0})):i({title:"Parameters Not Set",description:"No metadata found for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const _=()=>t(Tb(e.metadata.image.seed));ii("s",()=>{e?.metadata?.image?.seed?(_(),i({title:"Seed Set",status:"success",duration:2500,isClosable:!0})):i({title:"Seed Not Set",description:"Could not find seed for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const T=()=>t(b0e(e));ii("u",()=>{b&&Boolean(!o)&&h&&!p&&u?T():i({title:"Upscaling Failed",status:"error",duration:2500,isClosable:!0})},[e,b,o,h,p,u]);const A=()=>t(y0e(e));ii("r",()=>{v&&Boolean(!o)&&h&&!p&&c?A():i({title:"Face Restoration Failed",status:"error",duration:2500,isClosable:!0})},[e,v,o,h,p,c]);const M=()=>t(nve(!n));return ii("i",()=>{e?M():i({title:"Failed to load metadata",status:"error",duration:2500,isClosable:!0})},[e,n]),C("div",{className:"current-image-options",children:[C(Wp,{icon:C(q1e,{},void 0,!1,{fileName:mi,lineNumber:244,columnNumber:15},void 0),tooltip:"Send To Image To Image","aria-label":"Send To Image To Image",onClick:x},void 0,!1,{fileName:mi,lineNumber:243,columnNumber:7},void 0),C(vg,{label:"Use All",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:N},void 0,!1,{fileName:mi,lineNumber:250,columnNumber:7},void 0),C(vg,{label:"Use Seed",isDisabled:!e?.metadata?.image?.seed,onClick:_},void 0,!1,{fileName:mi,lineNumber:258,columnNumber:7},void 0),C(dD,{title:"Restore Faces",popoverOptions:C(DE,{},void 0,!1,{fileName:mi,lineNumber:266,columnNumber:25},void 0),actionButton:C(vg,{label:"Restore Faces",isDisabled:!v||Boolean(o)||!(h&&!p)||!c,onClick:A},void 0,!1,{fileName:mi,lineNumber:268,columnNumber:11},void 0),children:C(Wp,{icon:C(V1e,{},void 0,!1,{fileName:mi,lineNumber:280,columnNumber:30},void 0),"aria-label":"Restore Faces"},void 0,!1,{fileName:mi,lineNumber:280,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:264,columnNumber:7},void 0),C(dD,{title:"Upscale",styleClass:"upscale-popover",popoverOptions:C(PE,{},void 0,!1,{fileName:mi,lineNumber:286,columnNumber:25},void 0),actionButton:C(vg,{label:"Upscale Image",isDisabled:!b||Boolean(o)||!(h&&!p)||!u,onClick:T},void 0,!1,{fileName:mi,lineNumber:288,columnNumber:11},void 0),children:C(Wp,{icon:C(G1e,{},void 0,!1,{fileName:mi,lineNumber:300,columnNumber:30},void 0),"aria-label":"Upscale"},void 0,!1,{fileName:mi,lineNumber:300,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:283,columnNumber:7},void 0),C(Wp,{icon:C(H1e,{},void 0,!1,{fileName:mi,lineNumber:304,columnNumber:15},void 0),tooltip:"Details","aria-label":"Details",onClick:M},void 0,!1,{fileName:mi,lineNumber:303,columnNumber:7},void 0),C(a$,{image:e,children:C(Wp,{icon:C(j1e,{},void 0,!1,{fileName:mi,lineNumber:312,columnNumber:17},void 0),tooltip:"Delete Image","aria-label":"Delete Image",isDisabled:Boolean(o)},void 0,!1,{fileName:mi,lineNumber:311,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:310,columnNumber:7},void 0)]},void 0,!0,{fileName:mi,lineNumber:242,columnNumber:5},void 0)};var Tc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImagePreview.tsx";const xbe=Ga(e=>e.gallery,e=>{const t=e.images.findIndex(i=>i.uuid===e?.currentImage?.uuid),n=e.images.length;return{isOnFirstImage:t===0,isOnLastImage:!isNaN(t)&&t===n-1}},{memoizeOptions:{resultEqualityCheck:tb.isEqual}});function s$(e){const{imageToDisplay:t}=e,n=Sn(),{isOnFirstImage:i,isOnLastImage:o}=gt(xbe),u=gt(N=>N.options.shouldShowImageDetails),[c,p]=k.exports.useState(!1),h=()=>{p(!0)},v=()=>{p(!1)},b=()=>{n(oU())},x=()=>{n(aU())};return C("div",{className:"current-image-preview",children:[C(XS,{src:t.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:Tc,lineNumber:65,columnNumber:7},this),!u&&C("div",{className:"current-image-next-prev-buttons",children:[C("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:h,onMouseOut:v,children:c&&!i&&C(bi,{"aria-label":"Previous image",icon:C(fge,{className:"next-prev-button"},void 0,!1,{fileName:Tc,lineNumber:81,columnNumber:23},this),variant:"unstyled",onClick:b},void 0,!1,{fileName:Tc,lineNumber:79,columnNumber:15},this)},void 0,!1,{fileName:Tc,lineNumber:73,columnNumber:11},this),C("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:h,onMouseOut:v,children:c&&!o&&C(bi,{"aria-label":"Next image",icon:C(dge,{className:"next-prev-button"},void 0,!1,{fileName:Tc,lineNumber:95,columnNumber:23},this),variant:"unstyled",onClick:x},void 0,!1,{fileName:Tc,lineNumber:93,columnNumber:15},this)},void 0,!1,{fileName:Tc,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:Tc,lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:Tc,lineNumber:64,columnNumber:5},this)}var av="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/node_modules/@chakra-ui/icon/dist/index.esm.js",pD={path:C("g",{stroke:"currentColor",strokeWidth:"1.5",children:[C("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:av,lineNumber:14,columnNumber:22},globalThis),C("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:av,lineNumber:18,columnNumber:23},globalThis),C("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:av,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:av,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},l$=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:u=!1,children:c,className:p,__css:h,...v}=e,b=Kr("chakra-icon",p),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...h},N={ref:t,focusable:u,className:b,__css:x},_=i??pD.viewBox;if(n&&typeof n!="string")return Ae.createElement($e.svg,{as:n,...N,...v});const T=c??pD.path;return Ae.createElement($e.svg,{verticalAlign:"middle",viewBox:_,...N,...v},T)});l$.displayName="Icon";function Et(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,u=k.exports.Children.toArray(e.path),c=qe((p,h)=>C(l$,{ref:h,viewBox:t,...o,...p,children:u.length?u:C("path",{fill:"currentColor",d:n},void 0,!1,{fileName:av,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:av,lineNumber:88,columnNumber:60},this));return c.displayName=i,c}var dt="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/dist/index.esm.js";Et({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Et({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Et({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Et({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Et({displayName:"SunIcon",path:C("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[C("circle",{cx:"12",cy:"12",r:"5"},void 0,!1,{fileName:dt,lineNumber:42,columnNumber:22},globalThis),C("path",{d:"M12 1v2"},void 0,!1,{fileName:dt,lineNumber:46,columnNumber:23},globalThis),C("path",{d:"M12 21v2"},void 0,!1,{fileName:dt,lineNumber:48,columnNumber:23},globalThis),C("path",{d:"M4.22 4.22l1.42 1.42"},void 0,!1,{fileName:dt,lineNumber:50,columnNumber:23},globalThis),C("path",{d:"M18.36 18.36l1.42 1.42"},void 0,!1,{fileName:dt,lineNumber:52,columnNumber:23},globalThis),C("path",{d:"M1 12h2"},void 0,!1,{fileName:dt,lineNumber:54,columnNumber:23},globalThis),C("path",{d:"M21 12h2"},void 0,!1,{fileName:dt,lineNumber:56,columnNumber:23},globalThis),C("path",{d:"M4.22 19.78l1.42-1.42"},void 0,!1,{fileName:dt,lineNumber:58,columnNumber:23},globalThis),C("path",{d:"M18.36 5.64l1.42-1.42"},void 0,!1,{fileName:dt,lineNumber:60,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:36,columnNumber:25},globalThis)});Et({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Et({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:C("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"},void 0,!1,{fileName:dt,lineNumber:77,columnNumber:25},globalThis)});Et({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Et({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});Et({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Et({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Et({displayName:"ViewIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"},void 0,!1,{fileName:dt,lineNumber:119,columnNumber:22},globalThis),C("circle",{cx:"12",cy:"12",r:"2"},void 0,!1,{fileName:dt,lineNumber:121,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:117,columnNumber:25},globalThis)});Et({displayName:"ViewOffIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"},void 0,!1,{fileName:dt,lineNumber:134,columnNumber:22},globalThis),C("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"},void 0,!1,{fileName:dt,lineNumber:136,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:132,columnNumber:25},globalThis)});Et({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Et({displayName:"DeleteIcon",path:C("g",{fill:"currentColor",children:C("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"},void 0,!1,{fileName:dt,lineNumber:155,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:153,columnNumber:25},globalThis)});Et({displayName:"RepeatIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"},void 0,!1,{fileName:dt,lineNumber:166,columnNumber:22},globalThis),C("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"},void 0,!1,{fileName:dt,lineNumber:168,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:164,columnNumber:25},globalThis)});Et({displayName:"RepeatClockIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"},void 0,!1,{fileName:dt,lineNumber:179,columnNumber:22},globalThis),C("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"},void 0,!1,{fileName:dt,lineNumber:181,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:177,columnNumber:25},globalThis)});Et({displayName:"EditIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},void 0,!1,{fileName:dt,lineNumber:195,columnNumber:22},globalThis),C("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},void 0,!1,{fileName:dt,lineNumber:197,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:190,columnNumber:25},globalThis)});Et({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Et({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Et({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Et({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Et({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Et({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Et({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Et({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Et({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var u$=Et({displayName:"ExternalLinkIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},void 0,!1,{fileName:dt,lineNumber:275,columnNumber:22},globalThis),C("path",{d:"M15 3h6v6"},void 0,!1,{fileName:dt,lineNumber:277,columnNumber:23},globalThis),C("path",{d:"M10 14L21 3"},void 0,!1,{fileName:dt,lineNumber:279,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:270,columnNumber:25},globalThis)});Et({displayName:"LinkIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"},void 0,!1,{fileName:dt,lineNumber:290,columnNumber:22},globalThis),C("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"},void 0,!1,{fileName:dt,lineNumber:292,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:288,columnNumber:25},globalThis)});Et({displayName:"PlusSquareIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"},void 0,!1,{fileName:dt,lineNumber:306,columnNumber:22},globalThis),C("path",{d:"M12 8v8"},void 0,!1,{fileName:dt,lineNumber:313,columnNumber:23},globalThis),C("path",{d:"M8 12h8"},void 0,!1,{fileName:dt,lineNumber:315,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:301,columnNumber:25},globalThis)});Et({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Et({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Et({displayName:"TimeIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"},void 0,!1,{fileName:dt,lineNumber:342,columnNumber:22},globalThis),C("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"},void 0,!1,{fileName:dt,lineNumber:344,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:340,columnNumber:25},globalThis)});Et({displayName:"ArrowRightIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"},void 0,!1,{fileName:dt,lineNumber:355,columnNumber:22},globalThis),C("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"},void 0,!1,{fileName:dt,lineNumber:357,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:353,columnNumber:25},globalThis)});Et({displayName:"ArrowLeftIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"},void 0,!1,{fileName:dt,lineNumber:368,columnNumber:22},globalThis),C("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"},void 0,!1,{fileName:dt,lineNumber:370,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:366,columnNumber:25},globalThis)});Et({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Et({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Et({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Et({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Et({displayName:"EmailIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"},void 0,!1,{fileName:dt,lineNumber:410,columnNumber:22},globalThis),C("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"},void 0,!1,{fileName:dt,lineNumber:412,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:408,columnNumber:25},globalThis)});Et({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Et({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Et({displayName:"SpinnerIcon",path:C(Ui,{children:[C("defs",{children:C("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[C("stop",{stopColor:"currentColor",offset:"0%"},void 0,!1,{fileName:dt,lineNumber:443,columnNumber:22},globalThis),C("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"},void 0,!1,{fileName:dt,lineNumber:446,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:437,columnNumber:133},globalThis)},void 0,!1,{fileName:dt,lineNumber:437,columnNumber:83},globalThis),C("g",{transform:"translate(2)",fill:"none",children:[C("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"},void 0,!1,{fileName:dt,lineNumber:453,columnNumber:22},globalThis),C("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:dt,lineNumber:459,columnNumber:23},globalThis),C("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"},void 0,!1,{fileName:dt,lineNumber:463,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:450,columnNumber:25},globalThis)]},void 0,!0)});Et({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});Et({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:C("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"},void 0,!1,{fileName:dt,lineNumber:484,columnNumber:25},globalThis)});Et({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Et({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Et({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Et({displayName:"InfoOutlineIcon",path:C("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[C("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"},void 0,!1,{fileName:dt,lineNumber:521,columnNumber:22},globalThis),C("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"},void 0,!1,{fileName:dt,lineNumber:527,columnNumber:23},globalThis),C("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"},void 0,!1,{fileName:dt,lineNumber:533,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:516,columnNumber:25},globalThis)});Et({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Et({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});Et({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Et({displayName:"QuestionOutlineIcon",path:C("g",{stroke:"currentColor",strokeWidth:"1.5",children:[C("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:dt,lineNumber:568,columnNumber:22},globalThis),C("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:dt,lineNumber:572,columnNumber:23},globalThis),C("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:dt,lineNumber:576,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:565,columnNumber:25},globalThis)});Et({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});Et({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Et({viewBox:"0 0 14 14",path:C("g",{fill:"currentColor",children:C("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"},void 0,!1,{fileName:dt,lineNumber:605,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:603,columnNumber:25},globalThis)});Et({displayName:"MinusIcon",path:C("g",{fill:"currentColor",children:C("rect",{height:"4",width:"20",x:"2",y:"10"},void 0,!1,{fileName:dt,lineNumber:616,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:614,columnNumber:25},globalThis)});Et({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});function c$(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M245.09 327.74v-37.32c57.07 0 84.51 13.47 108.58 38.68 5.4 5.65 15 1.32 14.29-6.43-5.45-61.45-34.14-117.09-122.87-117.09v-37.32a8.32 8.32 0 00-14.05-6L146.58 242a8.2 8.2 0 000 11.94L231 333.71a8.32 8.32 0 0014.09-5.97z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}}]})(e)}var kt="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageMetaDataViewer/ImageMetadataViewer.tsx";const Dr=({label:e,value:t,onClick:n,isLink:i,labelPosition:o})=>C(Sr,{gap:2,children:[n&&C(Ca,{label:`Recall ${e}`,children:C(bi,{"aria-label":"Use this parameter",icon:C(c$,{},void 0,!1,{fileName:kt,lineNumber:64,columnNumber:19},void 0),size:"xs",variant:"ghost",fontSize:20,onClick:n},void 0,!1,{fileName:kt,lineNumber:62,columnNumber:11},void 0)},void 0,!1,{fileName:kt,lineNumber:61,columnNumber:9},void 0),C(Sr,{direction:o?"column":"row",children:[C(Oo,{fontWeight:"semibold",whiteSpace:"pre-wrap",pr:2,children:[e,":"]},void 0,!0,{fileName:kt,lineNumber:73,columnNumber:9},void 0),i?C(cv,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",C(u$,{mx:"2px"},void 0,!1,{fileName:kt,lineNumber:78,columnNumber:32},void 0)]},void 0,!0,{fileName:kt,lineNumber:77,columnNumber:11},void 0):C(Oo,{overflowY:"scroll",wordBreak:"break-all",children:t.toString()},void 0,!1,{fileName:kt,lineNumber:81,columnNumber:11},void 0)]},void 0,!0,{fileName:kt,lineNumber:72,columnNumber:7},void 0)]},void 0,!0,{fileName:kt,lineNumber:59,columnNumber:5},void 0),Cbe=(e,t)=>e.image.uuid===t.image.uuid,f$=k.exports.memo(({image:e,styleClass:t})=>{const n=Sn(),i=e?.metadata?.image||{},{type:o,postprocessing:u,sampler:c,prompt:p,seed:h,variations:v,steps:b,cfg_scale:x,seamless:N,hires_fix:_,width:T,height:A,strength:M,fit:z,init_image_path:P,mask_image_path:I,orig_path:F,scale:$}=i,Y=JSON.stringify(i,null,2);return C("div",{className:`image-metadata-viewer ${t}`,children:C(Sr,{gap:1,direction:"column",width:"100%",children:[C(Sr,{gap:2,children:[C(Oo,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:kt,lineNumber:140,columnNumber:13},void 0),C(cv,{href:e.url,isExternal:!0,children:[e.url,C(u$,{mx:"2px"},void 0,!1,{fileName:kt,lineNumber:143,columnNumber:15},void 0)]},void 0,!0,{fileName:kt,lineNumber:141,columnNumber:13},void 0)]},void 0,!0,{fileName:kt,lineNumber:139,columnNumber:11},void 0),Object.keys(i).length>0?C(Ui,{children:[o&&C(Dr,{label:"Generation type",value:o},void 0,!1,{fileName:kt,lineNumber:148,columnNumber:24},void 0),["esrgan","gfpgan"].includes(o)&&C(Dr,{label:"Original image",value:F},void 0,!1,{fileName:kt,lineNumber:150,columnNumber:17},void 0),o==="gfpgan"&&M!==void 0&&C(Dr,{label:"Fix faces strength",value:M,onClick:()=>n(L4(M))},void 0,!1,{fileName:kt,lineNumber:153,columnNumber:17},void 0),o==="esrgan"&&$!==void 0&&C(Dr,{label:"Upscaling scale",value:$,onClick:()=>n(y8($))},void 0,!1,{fileName:kt,lineNumber:160,columnNumber:17},void 0),o==="esrgan"&&M!==void 0&&C(Dr,{label:"Upscaling strength",value:M,onClick:()=>n(S8(M))},void 0,!1,{fileName:kt,lineNumber:167,columnNumber:17},void 0),p&&C(Dr,{label:"Prompt",labelPosition:"top",value:g8(p),onClick:()=>n(WB(p))},void 0,!1,{fileName:kt,lineNumber:174,columnNumber:17},void 0),h!==void 0&&C(Dr,{label:"Seed",value:h,onClick:()=>n(Tb(h))},void 0,!1,{fileName:kt,lineNumber:182,columnNumber:17},void 0),c&&C(Dr,{label:"Sampler",value:c,onClick:()=>n(KB(c))},void 0,!1,{fileName:kt,lineNumber:189,columnNumber:17},void 0),b&&C(Dr,{label:"Steps",value:b,onClick:()=>n(GB(b))},void 0,!1,{fileName:kt,lineNumber:196,columnNumber:17},void 0),x!==void 0&&C(Dr,{label:"CFG scale",value:x,onClick:()=>n(YB(x))},void 0,!1,{fileName:kt,lineNumber:203,columnNumber:17},void 0),v&&v.length>0&&C(Dr,{label:"Seed-weight pairs",value:b8(v),onClick:()=>n(nU(b8(v)))},void 0,!1,{fileName:kt,lineNumber:210,columnNumber:17},void 0),N&&C(Dr,{label:"Seamless",value:N,onClick:()=>n(XB(N))},void 0,!1,{fileName:kt,lineNumber:219,columnNumber:17},void 0),_&&C(Dr,{label:"High Resolution Optimization",value:_,onClick:()=>n(QB(_))},void 0,!1,{fileName:kt,lineNumber:226,columnNumber:17},void 0),T&&C(Dr,{label:"Width",value:T,onClick:()=>n(ZB(T))},void 0,!1,{fileName:kt,lineNumber:233,columnNumber:17},void 0),A&&C(Dr,{label:"Height",value:A,onClick:()=>n(qB(A))},void 0,!1,{fileName:kt,lineNumber:240,columnNumber:17},void 0),P&&C(Dr,{label:"Initial image",value:P,isLink:!0,onClick:()=>n(Tv(P))},void 0,!1,{fileName:kt,lineNumber:247,columnNumber:17},void 0),I&&C(Dr,{label:"Mask image",value:I,isLink:!0,onClick:()=>n(x8(I))},void 0,!1,{fileName:kt,lineNumber:255,columnNumber:17},void 0),o==="img2img"&&M&&C(Dr,{label:"Image to image strength",value:M,onClick:()=>n(JB(M))},void 0,!1,{fileName:kt,lineNumber:263,columnNumber:17},void 0),z&&C(Dr,{label:"Image to image fit",value:z,onClick:()=>n(tU(z))},void 0,!1,{fileName:kt,lineNumber:270,columnNumber:17},void 0),u&&u.length>0&&C(Ui,{children:[C(P_,{size:"sm",children:"Postprocessing"},void 0,!1,{fileName:kt,lineNumber:278,columnNumber:19},void 0),u.map((Z,ue)=>{if(Z.type==="esrgan"){const{scale:ce,strength:le}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Upscale (ESRGAN)`},void 0,!1,{fileName:kt,lineNumber:293,columnNumber:29},void 0),C(Dr,{label:"Scale",value:ce,onClick:()=>n(y8(ce))},void 0,!1,{fileName:kt,lineNumber:296,columnNumber:29},void 0),C(Dr,{label:"Strength",value:le,onClick:()=>n(S8(le))},void 0,!1,{fileName:kt,lineNumber:301,columnNumber:29},void 0)]},ue,!0,{fileName:kt,lineNumber:287,columnNumber:27},void 0)}else if(Z.type==="gfpgan"){const{strength:ce}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Face restoration (GFPGAN)`},void 0,!1,{fileName:kt,lineNumber:319,columnNumber:29},void 0),C(Dr,{label:"Strength",value:ce,onClick:()=>{n(L4(ce)),n(O4("gfpgan"))}},void 0,!1,{fileName:kt,lineNumber:323,columnNumber:29},void 0)]},ue,!0,{fileName:kt,lineNumber:313,columnNumber:27},void 0)}else if(Z.type==="codeformer"){const{strength:ce,fidelity:le}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Face restoration (Codeformer)`},void 0,!1,{fileName:kt,lineNumber:342,columnNumber:29},void 0),C(Dr,{label:"Strength",value:ce,onClick:()=>{n(L4(ce)),n(O4("codeformer"))}},void 0,!1,{fileName:kt,lineNumber:346,columnNumber:29},void 0),le&&C(Dr,{label:"Fidelity",value:le,onClick:()=>{n(eU(le)),n(O4("codeformer"))}},void 0,!1,{fileName:kt,lineNumber:355,columnNumber:31},void 0)]},ue,!0,{fileName:kt,lineNumber:336,columnNumber:27},void 0)}})]},void 0,!0),C(Sr,{gap:2,direction:"column",children:[C(Sr,{gap:2,children:[C(Ca,{label:"Copy metadata JSON",children:C(bi,{"aria-label":"Copy metadata JSON",icon:C(hge,{},void 0,!1,{fileName:kt,lineNumber:376,columnNumber:29},void 0),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(Y)},void 0,!1,{fileName:kt,lineNumber:374,columnNumber:21},void 0)},void 0,!1,{fileName:kt,lineNumber:373,columnNumber:19},void 0),C(Oo,{fontWeight:"semibold",children:"Metadata JSON:"},void 0,!1,{fileName:kt,lineNumber:385,columnNumber:19},void 0)]},void 0,!0,{fileName:kt,lineNumber:372,columnNumber:17},void 0),C("div",{className:"image-json-viewer",children:C("pre",{children:Y},void 0,!1,{fileName:kt,lineNumber:388,columnNumber:19},void 0)},void 0,!1,{fileName:kt,lineNumber:387,columnNumber:17},void 0)]},void 0,!0,{fileName:kt,lineNumber:371,columnNumber:15},void 0)]},void 0,!0):C(hF,{width:"100%",pt:10,children:C(Oo,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:kt,lineNumber:394,columnNumber:15},void 0)},void 0,!1,{fileName:kt,lineNumber:393,columnNumber:13},void 0)]},void 0,!0,{fileName:kt,lineNumber:138,columnNumber:9},void 0)},void 0,!1,{fileName:kt,lineNumber:137,columnNumber:7},void 0)},Cbe);var zp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/InitImagePreview.tsx";function mD(){const e=gt(i=>i.options.initialImagePath),t=Sn();return C("div",{className:"init-image-preview",children:[C("div",{className:"init-image-preview-header",children:[C("h1",{children:"Initial Image"},void 0,!1,{fileName:zp,lineNumber:21,columnNumber:9},this),C(bi,{isDisabled:!e,size:"sm","aria-label":"Reset Initial Image",onClick:i=>{i.stopPropagation(),t(Tv(null))},icon:C(jU,{},void 0,!1,{fileName:zp,lineNumber:27,columnNumber:17},this)},void 0,!1,{fileName:zp,lineNumber:22,columnNumber:9},this)]},void 0,!0,{fileName:zp,lineNumber:20,columnNumber:7},this),e&&C("div",{className:"init-image-image",children:C(XS,{fit:"contain",src:e,rounded:"md"},void 0,!1,{fileName:zp,lineNumber:32,columnNumber:11},this)},void 0,!1,{fileName:zp,lineNumber:31,columnNumber:9},this)]},void 0,!0,{fileName:zp,lineNumber:19,columnNumber:5},this)}var os="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImageDisplay.tsx";function Nbe(){const e=gt(u=>u.options.initialImagePath),{currentImage:t,intermediateImage:n}=gt(u=>u.gallery),i=gt(u=>u.options.shouldShowImageDetails),o=n||t;return C("div",{className:"image-to-image-display",style:o?{gridAutoRows:"max-content auto"}:{gridAutoRows:"auto"},children:e?C(Ui,{children:o?C(Ui,{children:[C(o$,{image:o},void 0,!1,{fileName:os,lineNumber:40,columnNumber:15},this),C("div",{className:"image-to-image-dual-preview-container",children:[C("div",{className:"image-to-image-dual-preview",children:[C(mD,{},void 0,!1,{fileName:os,lineNumber:43,columnNumber:19},this),C("div",{className:"image-to-image-current-image-display",children:C(s$,{imageToDisplay:o},void 0,!1,{fileName:os,lineNumber:45,columnNumber:21},this)},void 0,!1,{fileName:os,lineNumber:44,columnNumber:19},this)]},void 0,!0,{fileName:os,lineNumber:42,columnNumber:17},this),i&&C(f$,{image:o,styleClass:"img2img-metadata"},void 0,!1,{fileName:os,lineNumber:49,columnNumber:19},this)]},void 0,!0,{fileName:os,lineNumber:41,columnNumber:15},this)]},void 0,!0):C("div",{className:"image-to-image-single-preview",children:C(mD,{},void 0,!1,{fileName:os,lineNumber:58,columnNumber:15},this)},void 0,!1,{fileName:os,lineNumber:57,columnNumber:13},this)},void 0,!1):C("div",{className:"upload-image",children:C(bbe,{label:"Upload or Drop Image Here",icon:C(Cge,{},void 0,!1,{fileName:os,lineNumber:66,columnNumber:19},this),styleClass:"image-to-image-upload-btn",dispatcher:N0e},void 0,!1,{fileName:os,lineNumber:64,columnNumber:11},this)},void 0,!1,{fileName:os,lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:os,lineNumber:28,columnNumber:5},this)}var wbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/re-resizable/lib/resizer.js",_be=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(i[u]=o[u])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),hi=globalThis&&globalThis.__assign||function(){return hi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n"u"?void 0:Number(i),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof u>"u"?void 0:Number(u),minHeight:typeof c>"u"?void 0:Number(c)}},Obe=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],yD="__resizable_base__",d$=function(e){Rbe(t,e);function t(n){var i=e.call(this,n)||this;return i.ratio=1,i.resizable=null,i.parentLeft=0,i.parentTop=0,i.resizableLeft=0,i.resizableRight=0,i.resizableTop=0,i.resizableBottom=0,i.targetLeft=0,i.targetTop=0,i.appendBase=function(){if(!i.resizable||!i.window)return null;var o=i.parentNode;if(!o)return null;var u=i.window.document.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.position="absolute",u.style.transform="scale(0, 0)",u.style.left="0",u.style.flex="0 0 100%",u.classList?u.classList.add(yD):u.className+=yD,o.appendChild(u),u},i.removeBase=function(o){var u=i.parentNode;!u||u.removeChild(o)},i.ref=function(o){o&&(i.resizable=o)},i.state={isResizing:!1,width:typeof(i.propsSize&&i.propsSize.width)>"u"?"auto":i.propsSize&&i.propsSize.width,height:typeof(i.propsSize&&i.propsSize.height)>"u"?"auto":i.propsSize&&i.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},i.onResizeStart=i.onResizeStart.bind(i),i.onMouseMove=i.onMouseMove.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Abe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,i=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,u=this.resizable.offsetHeight,c=this.resizable.style.position;c!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:u,this.resizable.style.position=c}return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,i=this.props.size,o=function(p){if(typeof n.state[p]>"u"||n.state[p]==="auto")return"auto";if(n.propsSize&&n.propsSize[p]&&n.propsSize[p].toString().endsWith("%")){if(n.state[p].toString().endsWith("%"))return n.state[p].toString();var h=n.getParentSize(),v=Number(n.state[p].toString().replace("px","")),b=v/h[p]*100;return b+"%"}return Y6(n.state[p])},u=i&&typeof i.width<"u"&&!this.state.isResizing?Y6(i.width):o("width"),c=i&&typeof i.height<"u"&&!this.state.isResizing?Y6(i.height):o("height");return{width:u,height:c}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var i=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var u={width:n.offsetWidth,height:n.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(n),u},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,i){var o=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===n&&(typeof o>"u"||o==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,i){var o=this.props.boundsByDirection,u=this.state.direction,c=o&&Zh("left",u),p=o&&Zh("top",u),h,v;if(this.props.bounds==="parent"){var b=this.parentNode;b&&(h=c?this.resizableRight-this.parentLeft:b.offsetWidth+(this.parentLeft-this.resizableLeft),v=p?this.resizableBottom-this.parentTop:b.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(h=c?this.resizableRight:this.window.innerWidth-this.resizableLeft,v=p?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(h=c?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),v=p?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return h&&Number.isFinite(h)&&(n=n&&n"u"?10:u.width,x=typeof o.width>"u"||o.width<0?n:o.width,N=typeof u.height>"u"?10:u.height,_=typeof o.height>"u"||o.height<0?i:o.height,T=h||0,A=v||0;if(p){var M=(N-T)*this.ratio+A,z=(_-T)*this.ratio+A,P=(b-A)/this.ratio+T,I=(x-A)/this.ratio+T,F=Math.max(b,M),$=Math.min(x,z),Y=Math.max(N,P),Z=Math.min(_,I);n=p4(n,F,$),i=p4(i,Y,Z)}else n=p4(n,b,x),i=p4(i,N,_);return{newWidth:n,newHeight:i}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left,this.parentTop=i.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var u=this.resizable.getBoundingClientRect(),c=u.left,p=u.top,h=u.right,v=u.bottom;this.resizableLeft=c,this.resizableRight=h,this.resizableTop=p,this.resizableBottom=v}},t.prototype.onResizeStart=function(n,i){if(!(!this.resizable||!this.window)){var o=0,u=0;if(n.nativeEvent&&kbe(n.nativeEvent)?(o=n.nativeEvent.clientX,u=n.nativeEvent.clientY):n.nativeEvent&&m4(n.nativeEvent)&&(o=n.nativeEvent.touches[0].clientX,u=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var c=this.props.onResizeStart(n,i,this.resizable);if(c===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var p,h=this.window.getComputedStyle(this.resizable);if(h.flexBasis!=="auto"){var v=this.parentNode;if(v){var b=this.window.getComputedStyle(v).flexDirection;this.flexDir=b.startsWith("row")?"row":"column",p=h.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var x={original:{x:o,y:u,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Su(Su({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:i,flexBasis:p};this.setState(x)}},t.prototype.onMouseMove=function(n){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&m4(n))try{n.preventDefault(),n.stopPropagation()}catch{}var o=this.props,u=o.maxWidth,c=o.maxHeight,p=o.minWidth,h=o.minHeight,v=m4(n)?n.touches[0].clientX:n.clientX,b=m4(n)?n.touches[0].clientY:n.clientY,x=this.state,N=x.direction,_=x.original,T=x.width,A=x.height,M=this.getParentSize(),z=Lbe(M,this.window.innerWidth,this.window.innerHeight,u,c,p,h);u=z.maxWidth,c=z.maxHeight,p=z.minWidth,h=z.minHeight;var P=this.calculateNewSizeFromDirection(v,b),I=P.newHeight,F=P.newWidth,$=this.calculateNewMaxFromBoundary(u,c);this.props.snap&&this.props.snap.x&&(F=bD(F,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(I=bD(I,this.props.snap.y,this.props.snapGap));var Y=this.calculateNewSizeFromAspectRatio(F,I,{width:$.maxWidth,height:$.maxHeight},{width:p,height:h});if(F=Y.newWidth,I=Y.newHeight,this.props.grid){var Z=gD(F,this.props.grid[0]),ue=gD(I,this.props.grid[1]),ce=this.props.snapGap||0;F=ce===0||Math.abs(Z-F)<=ce?Z:F,I=ce===0||Math.abs(ue-I)<=ce?ue:I}var le={width:F-_.width,height:I-_.height};if(T&&typeof T=="string"){if(T.endsWith("%")){var ge=F/M.width*100;F=ge+"%"}else if(T.endsWith("vw")){var Ye=F/this.window.innerWidth*100;F=Ye+"vw"}else if(T.endsWith("vh")){var re=F/this.window.innerHeight*100;F=re+"vh"}}if(A&&typeof A=="string"){if(A.endsWith("%")){var ge=I/M.height*100;I=ge+"%"}else if(A.endsWith("vw")){var Ye=I/this.window.innerWidth*100;I=Ye+"vw"}else if(A.endsWith("vh")){var re=I/this.window.innerHeight*100;I=re+"vh"}}var ie={width:this.createSizeForCssProperty(F,"width"),height:this.createSizeForCssProperty(I,"height")};this.flexDir==="row"?ie.flexBasis=ie.width:this.flexDir==="column"&&(ie.flexBasis=ie.height),Rv.exports.flushSync(function(){i.setState(ie)}),this.props.onResize&&this.props.onResize(n,N,this.resizable,le)}},t.prototype.onMouseUp=function(n){var i=this.state,o=i.isResizing,u=i.direction,c=i.original;if(!(!o||!this.resizable)){var p={width:this.size.width-c.width,height:this.size.height-c.height};this.props.onResizeStop&&this.props.onResizeStop(n,u,this.resizable,p),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Su(Su({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){this.setState({width:n.width,height:n.height})},t.prototype.renderResizer=function(){var n=this,i=this.props,o=i.enable,u=i.handleStyles,c=i.handleClasses,p=i.handleWrapperStyle,h=i.handleWrapperClass,v=i.handleComponent;if(!o)return null;var b=Object.keys(o).map(function(x){return o[x]!==!1?C(Tbe,{direction:x,onResizeStart:n.onResizeStart,replaceStyles:u&&u[x],className:c&&c[x],children:v&&v[x]?v[x]:null},x,!1,{fileName:d4,lineNumber:704,columnNumber:25},this):null});return C("div",{className:h,style:p,children:b},void 0,!1,{fileName:d4,lineNumber:709,columnNumber:17},this)},t.prototype.render=function(){var n=this,i=Object.keys(this.props).reduce(function(c,p){return Obe.indexOf(p)!==-1||(c[p]=n.props[p]),c},{}),o=Su(Su(Su({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var u=this.props.as||"div";return C(u,{...Su({ref:this.ref,style:o,className:this.props.className},i),children:[this.state.isResizing&&C("div",{style:this.state.backgroundStyle},void 0,!1,{fileName:d4,lineNumber:726,columnNumber:38},this),this.props.children,this.renderResizer()]},void 0,!0,{fileName:d4,lineNumber:725,columnNumber:17},this)},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(k.exports.PureComponent),SD="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-masonry-css/dist/react-masonry-css.module.js";function Mbe(e,t){if(e==null)return{};var n=Dbe(e,t),i,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function Dbe(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,u;for(u=0;u=0)&&(n[o]=e[o]);return n}function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function sg(e){for(var t=1;t{this.reCalculateColumnCount()})}reCalculateColumnCount(){const t=window&&window.innerWidth||1/0;let n=this.props.breakpointCols;typeof n!="object"&&(n={default:parseInt(n)||q6});let i=1/0,o=n.default||q6;for(let u in n){const c=parseInt(u);c>0&&t<=c&&c"u"&&(c="my-masonry-grid_column"));const p=sg(sg(sg({},t),n),{},{style:sg(sg({},n.style),{},{width:u}),className:c});return o.map((h,v)=>k.exports.createElement("div",{...p,key:v,__self:this,__source:{fileName:SD,lineNumber:167,columnNumber:27}},h))}logDeprecated(t){console.error("[Masonry]",t)}render(){const t=this.props,{children:n,breakpointCols:i,columnClassName:o,columnAttrs:u,column:c,className:p}=t,h=Mbe(t,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let v=p;return typeof p!="string"&&(this.logDeprecated('The property "className" requires a string'),typeof p>"u"&&(v="my-masonry-grid")),C("div",{...h,className:v,children:this.renderColumns()},void 0,!1,{fileName:SD,lineNumber:201,columnNumber:25},this)}}p$.defaultProps=Ibe;var Qi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const Fbe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,zbe=k.exports.memo(e=>{const[t,n]=k.exports.useState(!1),i=Sn(),o=gt(M=>M.options.activeTab),{image:u,isSelected:c}=e,{url:p,uuid:h,metadata:v}=u,b=()=>n(!0),x=()=>n(!1),N=M=>{M.stopPropagation(),i(rU(v))},_=M=>{M.stopPropagation(),i(Tb(u.metadata.image.seed))},T=M=>{M.stopPropagation(),i(Tv(u.url)),o!==1&&i(Rc(1))};return C(Xs,{position:"relative",className:"hoverable-image",onMouseOver:b,onMouseOut:x,children:[C(XS,{objectFit:"cover",rounded:"md",src:p,loading:"lazy",className:"hoverable-image-image"},void 0,!1,{fileName:Qi,lineNumber:71,columnNumber:7},void 0),C("div",{className:"hoverable-image-content",onClick:()=>i(ove(u)),children:c&&C(ms,{width:"50%",height:"50%",as:pge,className:"hoverable-image-check"},void 0,!1,{fileName:Qi,lineNumber:80,columnNumber:11},void 0)},void 0,!1,{fileName:Qi,lineNumber:78,columnNumber:7},void 0),t&&C("div",{className:"hoverable-image-icons",children:[C(Ca,{label:"Delete image",hasArrow:!0,children:C(a$,{image:u,children:C(bi,{colorScheme:"red","aria-label":"Delete image",icon:C(xge,{},void 0,!1,{fileName:Qi,lineNumber:95,columnNumber:23},void 0),size:"xs",variant:"imageHoverIconButton",fontSize:14},void 0,!1,{fileName:Qi,lineNumber:92,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:91,columnNumber:13},void 0)},void 0,!1,{fileName:Qi,lineNumber:90,columnNumber:11},void 0),["txt2img","img2img"].includes(u?.metadata?.image?.type)&&C(Ca,{label:"Use All Parameters",hasArrow:!0,children:C(bi,{"aria-label":"Use All Parameters",icon:C(c$,{},void 0,!1,{fileName:Qi,lineNumber:106,columnNumber:23},void 0),size:"xs",fontSize:18,variant:"imageHoverIconButton",onClickCapture:N},void 0,!1,{fileName:Qi,lineNumber:104,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:103,columnNumber:13},void 0),u?.metadata?.image?.seed!==void 0&&C(Ca,{label:"Use Seed",hasArrow:!0,children:C(bi,{"aria-label":"Use Seed",icon:C(yge,{},void 0,!1,{fileName:Qi,lineNumber:118,columnNumber:23},void 0),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:_},void 0,!1,{fileName:Qi,lineNumber:116,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:115,columnNumber:13},void 0),C(Ca,{label:"Send To Image To Image",hasArrow:!0,children:C(bi,{"aria-label":"Send To Image To Image",icon:C(vge,{},void 0,!1,{fileName:Qi,lineNumber:129,columnNumber:21},void 0),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:T},void 0,!1,{fileName:Qi,lineNumber:127,columnNumber:13},void 0)},void 0,!1,{fileName:Qi,lineNumber:126,columnNumber:11},void 0)]},void 0,!0,{fileName:Qi,lineNumber:89,columnNumber:9},void 0)]},h,!0,{fileName:Qi,lineNumber:64,columnNumber:5},void 0)},Fbe);var uo="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";function m$(){const{images:e,currentImageUuid:t,areMoreImagesAvailable:n}=gt(N=>N.gallery),i=gt(N=>N.options.shouldShowGallery),o=gt(N=>N.options.activeTab),u=Sn(),[c,p]=k.exports.useState(),h=N=>{p(Math.floor((window.innerWidth-N.x)/120))},v=()=>{u(CM(!i))},b=()=>{u(CM(!1))},x=()=>{u(wU())};return ii("g",()=>{v()},[i]),ii("left",()=>{u(oU())},[]),ii("right",()=>{u(aU())},[]),C("div",{className:"image-gallery-area",children:[!i&&C(Wp,{tooltip:"Show Gallery",tooltipPlacement:"top","aria-label":"Show Gallery",onClick:v,className:"image-gallery-popup-btn",children:C(GM,{},void 0,!1,{fileName:uo,lineNumber:82,columnNumber:11},this)},void 0,!1,{fileName:uo,lineNumber:75,columnNumber:9},this),i&&C(d$,{defaultSize:{width:"300",height:"100%"},minWidth:"300",maxWidth:o==1?"300":"600",className:"image-gallery-popup",onResize:h,children:[C("div",{className:"image-gallery-header",children:[C("h1",{children:"Your Invocations"},void 0,!1,{fileName:uo,lineNumber:96,columnNumber:13},this),C(bi,{size:"sm","aria-label":"Close Gallery",onClick:b,className:"image-gallery-close-btn",icon:C(jU,{},void 0,!1,{fileName:uo,lineNumber:102,columnNumber:21},this)},void 0,!1,{fileName:uo,lineNumber:97,columnNumber:13},this)]},void 0,!0,{fileName:uo,lineNumber:95,columnNumber:11},this),C("div",{className:"image-gallery-container",children:[e.length?C(p$,{className:"masonry-grid",columnClassName:"masonry-grid_column",breakpointCols:c,children:e.map(N=>{const{uuid:_}=N;return C(zbe,{image:N,isSelected:t===_},_,!1,{fileName:uo,lineNumber:117,columnNumber:21},this)})},void 0,!1,{fileName:uo,lineNumber:107,columnNumber:15},this):C("div",{className:"image-gallery-container-placeholder",children:[C(GM,{},void 0,!1,{fileName:uo,lineNumber:128,columnNumber:17},this),C("p",{children:"No Images In Gallery"},void 0,!1,{fileName:uo,lineNumber:129,columnNumber:17},this)]},void 0,!0,{fileName:uo,lineNumber:127,columnNumber:15},this),C(Du,{onClick:x,isDisabled:!n,className:"image-gallery-load-more-btn",children:n?"Load More":"All Images Loaded"},void 0,!1,{fileName:uo,lineNumber:132,columnNumber:13},this)]},void 0,!0,{fileName:uo,lineNumber:105,columnNumber:11},this)]},void 0,!0,{fileName:uo,lineNumber:87,columnNumber:9},this)]},void 0,!0,{fileName:uo,lineNumber:73,columnNumber:5},this)}var lg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImage.tsx";function Bbe(){const e=gt(t=>t.options.shouldShowGallery);return C("div",{className:"image-to-image-workarea",children:[C(sge,{},void 0,!1,{fileName:lg,lineNumber:14,columnNumber:7},this),C("div",{className:"image-to-image-display-area",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[C(Nbe,{},void 0,!1,{fileName:lg,lineNumber:23,columnNumber:9},this),C(m$,{},void 0,!1,{fileName:lg,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:lg,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:lg,lineNumber:13,columnNumber:5},this)}var ja="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImagePanel.tsx";function Ube(){const e=gt(n=>n.options.showAdvancedOptions),t={seed:{header:C(Xs,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:ja,lineNumber:29,columnNumber:9},this),feature:zl.SEED,options:C(MU,{},void 0,!1,{fileName:ja,lineNumber:34,columnNumber:16},this)},variations:{header:C(PU,{},void 0,!1,{fileName:ja,lineNumber:37,columnNumber:15},this),feature:zl.VARIATIONS,options:C(IU,{},void 0,!1,{fileName:ja,lineNumber:39,columnNumber:16},this)},face_restore:{header:C(OU,{},void 0,!1,{fileName:ja,lineNumber:42,columnNumber:15},this),feature:zl.FACE_CORRECTION,options:C(DE,{},void 0,!1,{fileName:ja,lineNumber:44,columnNumber:16},this)},upscale:{header:C(DU,{},void 0,!1,{fileName:ja,lineNumber:47,columnNumber:15},this),feature:zl.UPSCALE,options:C(PE,{},void 0,!1,{fileName:ja,lineNumber:49,columnNumber:16},this)},other:{header:C(Xs,{flex:"1",textAlign:"left",children:"Other"},void 0,!1,{fileName:ja,lineNumber:58,columnNumber:9},this),feature:zl.OTHER,options:C(HU,{},void 0,!1,{fileName:ja,lineNumber:63,columnNumber:16},this)}};return C("div",{className:"text-to-image-panel",children:[C(YU,{},void 0,!1,{fileName:ja,lineNumber:69,columnNumber:7},this),C(GU,{},void 0,!1,{fileName:ja,lineNumber:70,columnNumber:7},this),C(zU,{},void 0,!1,{fileName:ja,lineNumber:71,columnNumber:7},this),C(FU,{},void 0,!1,{fileName:ja,lineNumber:72,columnNumber:7},this),e?C(VU,{accordionInfo:t},void 0,!1,{fileName:ja,lineNumber:74,columnNumber:9},this):null]},void 0,!0,{fileName:ja,lineNumber:68,columnNumber:5},this)}var Bp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const $be=()=>{const{currentImage:e,intermediateImage:t}=gt(o=>o.gallery),n=gt(o=>o.options.shouldShowImageDetails),i=t||e;return i?C("div",{className:"current-image-display",children:[C("div",{className:"current-image-tools",children:C(o$,{image:i},void 0,!1,{fileName:Bp,lineNumber:24,columnNumber:9},void 0)},void 0,!1,{fileName:Bp,lineNumber:23,columnNumber:7},void 0),C(s$,{imageToDisplay:i},void 0,!1,{fileName:Bp,lineNumber:26,columnNumber:7},void 0),n&&C(f$,{image:i,styleClass:"current-image-metadata"},void 0,!1,{fileName:Bp,lineNumber:28,columnNumber:9},void 0)]},void 0,!0,{fileName:Bp,lineNumber:22,columnNumber:5},void 0):C("div",{className:"current-image-display-placeholder",children:C(Z1e,{},void 0,!1,{fileName:Bp,lineNumber:36,columnNumber:7},void 0)},void 0,!1,{fileName:Bp,lineNumber:35,columnNumber:5},void 0)};var ug="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImage.tsx";function jbe(){const e=gt(t=>t.options.shouldShowGallery);return C("div",{className:"text-to-image-workarea",children:[C(Ube,{},void 0,!1,{fileName:ug,lineNumber:14,columnNumber:7},this),C("div",{className:"text-to-image-display",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[C($be,{},void 0,!1,{fileName:ug,lineNumber:23,columnNumber:9},this),C(m$,{},void 0,!1,{fileName:ug,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:ug,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:ug,lineNumber:13,columnNumber:5},this)}var Ji="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/InvokeTabs.tsx";const Qh={txt2img:{title:C(n1e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:22,columnNumber:12},void 0),panel:C(jbe,{},void 0,!1,{fileName:Ji,lineNumber:23,columnNumber:12},void 0),tooltip:"Text To Image"},img2img:{title:C(Y0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:27,columnNumber:12},void 0),panel:C(Bbe,{},void 0,!1,{fileName:Ji,lineNumber:28,columnNumber:12},void 0),tooltip:"Image To Image"},inpainting:{title:C(Z0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:32,columnNumber:12},void 0),panel:C(V0e,{},void 0,!1,{fileName:Ji,lineNumber:33,columnNumber:12},void 0),tooltip:"Inpainting"},outpainting:{title:C(J0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:37,columnNumber:12},void 0),panel:C(W0e,{},void 0,!1,{fileName:Ji,lineNumber:38,columnNumber:12},void 0),tooltip:"Outpainting"},nodes:{title:C(X0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:42,columnNumber:12},void 0),panel:C(H0e,{},void 0,!1,{fileName:Ji,lineNumber:43,columnNumber:12},void 0),tooltip:"Nodes"},postprocess:{title:C(t1e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:47,columnNumber:12},void 0),panel:C(G0e,{},void 0,!1,{fileName:Ji,lineNumber:48,columnNumber:12},void 0),tooltip:"Post Processing"}},Vbe=tb.map(Qh,(e,t)=>t);function Hbe(){const e=gt(o=>o.options.activeTab),t=Sn();ii("1",()=>{t(Rc(0))}),ii("2",()=>{t(Rc(1))}),ii("3",()=>{t(Rc(2))}),ii("4",()=>{t(Rc(3))}),ii("5",()=>{t(Rc(4))}),ii("6",()=>{t(Rc(5))});const n=()=>{const o=[];return Object.keys(Qh).forEach(u=>{o.push(C(Ca,{hasArrow:!0,label:Qh[u].tooltip,placement:"right",children:C(Hz,{children:Qh[u].title},void 0,!1,{fileName:Ji,lineNumber:95,columnNumber:11},this)},u,!1,{fileName:Ji,lineNumber:89,columnNumber:9},this))}),o},i=()=>{const o=[];return Object.keys(Qh).forEach(u=>{o.push(C(jz,{className:"app-tabs-panel",children:Qh[u].panel},u,!1,{fileName:Ji,lineNumber:106,columnNumber:9},this))}),o};return C($z,{isLazy:!0,className:"app-tabs",variant:"unstyled",defaultIndex:e,index:e,onChange:o=>{t(Rc(o))},children:[C("div",{className:"app-tabs-list",children:n()},void 0,!1,{fileName:Ji,lineNumber:125,columnNumber:7},this),C(Vz,{className:"app-tabs-panels",children:i()},void 0,!1,{fileName:Ji,lineNumber:126,columnNumber:7},this)]},void 0,!0,{fileName:Ji,lineNumber:115,columnNumber:5},this)}const Wbe=(e,t)=>{const{dispatch:n,getState:i}=e;return{emitGenerateImage:()=>{n(M4(!0));const o={...i().options};Vbe[o.activeTab]==="txt2img"&&(o.shouldUseInitImage=!1);const{generationParameters:u,esrganParameters:c,facetoolParameters:p}=L0e(o,i().system);t.emit("generateImage",u,c,p),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...u,...c,...p})}`}))},emitRunESRGAN:o=>{n(M4(!0));const{upscalingLevel:u,upscalingStrength:c}=i().options,p={upscale:[u,c]};t.emit("runPostprocessing",o,{type:"esrgan",...p}),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...p})}`}))},emitRunFacetool:o=>{n(M4(!0));const{facetoolType:u,facetoolStrength:c,codeformerFidelity:p}=i().options,h={facetool_strength:c};u==="codeformer"&&(h.codeformer_fidelity=p),t.emit("runPostprocessing",o,{type:u,...h}),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Face restoration (${u}) requested: ${JSON.stringify({file:o.url,...h})}`}))},emitDeleteImage:o=>{const{url:u,uuid:c}=o;t.emit("deleteImage",u,c)},emitRequestImages:()=>{const{earliest_mtime:o}=i().gallery;t.emit("requestImages",o)},emitRequestNewImages:()=>{const{latest_mtime:o}=i().gallery;t.emit("requestLatestImages",o)},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")}}},Gbe=()=>{const{origin:e}=new URL(window.location.href),t=I4(e,{timeout:6e4});let n=!1;return o=>u=>c=>{const{onConnect:p,onDisconnect:h,onError:v,onPostprocessingResult:b,onGenerationResult:x,onIntermediateResult:N,onProgressUpdate:_,onGalleryImages:T,onProcessingCanceled:A,onImageDeleted:M,onInitialImageUploaded:z,onMaskImageUploaded:P,onSystemConfig:I}=_0e(o),{emitGenerateImage:F,emitRunESRGAN:$,emitRunFacetool:Y,emitDeleteImage:Z,emitRequestImages:ue,emitRequestNewImages:ce,emitCancelProcessing:le,emitUploadInitialImage:ge,emitUploadMaskImage:Ye,emitRequestSystemConfig:re}=Wbe(o,t);switch(n||(t.on("connect",()=>p()),t.on("disconnect",()=>h()),t.on("error",ie=>v(ie)),t.on("generationResult",ie=>x(ie)),t.on("postprocessingResult",ie=>b(ie)),t.on("intermediateResult",ie=>N(ie)),t.on("progressUpdate",ie=>_(ie)),t.on("galleryImages",ie=>T(ie)),t.on("processingCanceled",()=>{A()}),t.on("imageDeleted",ie=>{M(ie)}),t.on("initialImageUploaded",ie=>{z(ie)}),t.on("maskImageUploaded",ie=>{P(ie)}),t.on("systemConfig",ie=>{I(ie)}),n=!0),c.type){case"socketio/generateImage":{F();break}case"socketio/runESRGAN":{$(c.payload);break}case"socketio/runFacetool":{Y(c.payload);break}case"socketio/deleteImage":{Z(c.payload);break}case"socketio/requestImages":{ue();break}case"socketio/requestNewImages":{ce();break}case"socketio/cancelProcessing":{le();break}case"socketio/uploadInitialImage":{ge(c.payload);break}case"socketio/uploadMaskImage":{Ye(c.payload);break}case"socketio/requestSystemConfig":{re();break}}u(c)}},Ybe={key:"root",storage:TE,blacklist:["gallery","system"]},qbe={key:"system",storage:TE,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},Zbe=yB({options:rve,gallery:uve,system:$B(qbe,yve)}),Kbe=$B(Ybe,Zbe),h$=Yme({reducer:Kbe,middleware:e=>e({serializableCheck:!1}).concat(Gbe())}),Sn=mhe,gt=ihe;function z4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z4=function(n){return typeof n}:z4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},z4(e)}function Xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CD(e,t){for(var n=0;n({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}});var wD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/Loading.tsx";const g$=()=>C(Sr,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:C(ZS,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:wD,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:wD,lineNumber:5,columnNumber:9},void 0);var tye="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/ProgressBar.tsx";const nye=Ga(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),rye=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:i}=gt(nye),o=t?Math.round(t*100/n):0;return C(Dz,{height:"4px",value:o,isIndeterminate:e&&!i,className:"progress-bar"},void 0,!1,{fileName:tye,lineNumber:30,columnNumber:5},void 0)},iye=""+new URL("logo.13003d72.png",import.meta.url).href;var cg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModalItem.tsx";function aye(e){const{title:t,hotkey:n,description:i}=e;return C("div",{className:"hotkey-modal-item",children:[C("div",{className:"hotkey-info",children:[C("p",{className:"hotkey-title",children:t},void 0,!1,{fileName:cg,lineNumber:14,columnNumber:9},this),i&&C("p",{className:"hotkey-description",children:i},void 0,!1,{fileName:cg,lineNumber:15,columnNumber:25},this)]},void 0,!0,{fileName:cg,lineNumber:13,columnNumber:7},this),C("div",{className:"hotkey-key",children:n},void 0,!1,{fileName:cg,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:cg,lineNumber:12,columnNumber:5},this)}var Up="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModal.tsx";function oye({children:e}){const{isOpen:t,onOpen:n,onClose:i}=sS(),o=[{title:"Invoke",desc:"Generate an image",hotkey:"Ctrl+Enter"},{title:"Cancel",desc:"Cancel image generation",hotkey:"Shift+X"},{title:"Toggle Gallery",desc:"Open and close the gallery drawer",hotkey:"G"},{title:"Set Seed",desc:"Use the seed of the current image",hotkey:"S"},{title:"Set Parameters",desc:"Use all parameters of the current image",hotkey:"A"},{title:"Restore Faces",desc:"Restore the current image",hotkey:"R"},{title:"Upscale",desc:"Upscale the current image",hotkey:"U"},{title:"Show Info",desc:"Show metadata info of the current image",hotkey:"I"},{title:"Send To Image To Image",desc:"Send the current image to Image to Image module",hotkey:"Shift+I"},{title:"Delete Image",desc:"Delete the current image",hotkey:"Del"},{title:"Focus Prompt",desc:"Focus the prompt input area",hotkey:"Alt+A"},{title:"Previous Image",desc:"Display the previous image in the gallery",hotkey:"Arrow left"},{title:"Next Image",desc:"Display the next image in the gallery",hotkey:"Arrow right"},{title:"Change Tabs",desc:"Switch to another workspace",hotkey:"1-6"},{title:"Theme Toggle",desc:"Switch between dark and light modes",hotkey:"Shift+D"},{title:"Console Toggle",desc:"Open and close console",hotkey:"`"}],u=()=>{const c=[];return o.forEach((p,h)=>{c.push(C(aye,{title:p.title,description:p.desc,hotkey:p.hotkey},h,!1,{fileName:Up,lineNumber:91,columnNumber:9},this))}),c};return C(Ui,{children:[k.exports.cloneElement(e,{onClick:n}),C(wv,{isOpen:t,onClose:i,children:[C(Kg,{},void 0,!1,{fileName:Up,lineNumber:109,columnNumber:9},this),C(Zg,{className:"hotkeys-modal",children:[C(tE,{},void 0,!1,{fileName:Up,lineNumber:111,columnNumber:11},this),C("h1",{children:"Keyboard Shorcuts"},void 0,!1,{fileName:Up,lineNumber:112,columnNumber:11},this),C("div",{className:"hotkeys-modal-items",children:u()},void 0,!1,{fileName:Up,lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:Up,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:Up,lineNumber:108,columnNumber:7},this)]},void 0,!0)}var Z6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModalItem.tsx";function K6({settingTitle:e,isChecked:t,dispatcher:n}){const i=Sn();return C(fd,{className:"settings-modal-item",children:[C(sm,{marginBottom:1,children:e},void 0,!1,{fileName:Z6,lineNumber:17,columnNumber:7},this),C(s3,{isChecked:t,onChange:o=>i(n(o.target.checked))},void 0,!1,{fileName:Z6,lineNumber:18,columnNumber:7},this)]},void 0,!0,{fileName:Z6,lineNumber:16,columnNumber:5},this)}var $r="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModal.tsx";const sye=Ga(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}},{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),lye=({children:e})=>{const{isOpen:t,onOpen:n,onClose:i}=sS(),{isOpen:o,onOpen:u,onClose:c}=sS(),{shouldDisplayInProgress:p,shouldConfirmOnDelete:h,shouldDisplayGuides:v}=gt(sye),b=()=>{b$.purge().then(()=>{i(),u()})};return C(Ui,{children:[k.exports.cloneElement(e,{onClick:n}),C(wv,{isOpen:t,onClose:i,children:[C(Kg,{},void 0,!1,{fileName:$r,lineNumber:95,columnNumber:9},void 0),C(Zg,{className:"settings-modal",children:[C(rE,{className:"settings-modal-header",children:"Settings"},void 0,!1,{fileName:$r,lineNumber:97,columnNumber:11},void 0),C(tE,{},void 0,!1,{fileName:$r,lineNumber:98,columnNumber:11},void 0),C(fS,{className:"settings-modal-content",children:[C("div",{className:"settings-modal-items",children:[C(K6,{settingTitle:"Display In-Progress Images (slower)",isChecked:p,dispatcher:dve},void 0,!1,{fileName:$r,lineNumber:101,columnNumber:15},void 0),C(K6,{settingTitle:"Confirm on Delete",isChecked:h,dispatcher:lU},void 0,!1,{fileName:$r,lineNumber:107,columnNumber:15},void 0),C(K6,{settingTitle:"Display Help Icons",isChecked:v,dispatcher:vve},void 0,!1,{fileName:$r,lineNumber:113,columnNumber:15},void 0)]},void 0,!0,{fileName:$r,lineNumber:100,columnNumber:13},void 0),C("div",{className:"settings-modal-reset",children:[C(P_,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:$r,lineNumber:121,columnNumber:15},void 0),C(Oo,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."},void 0,!1,{fileName:$r,lineNumber:122,columnNumber:15},void 0),C(Oo,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."},void 0,!1,{fileName:$r,lineNumber:127,columnNumber:15},void 0),C(Du,{colorScheme:"red",onClick:b,children:"Reset Web UI"},void 0,!1,{fileName:$r,lineNumber:132,columnNumber:15},void 0)]},void 0,!0,{fileName:$r,lineNumber:120,columnNumber:13},void 0)]},void 0,!0,{fileName:$r,lineNumber:99,columnNumber:11},void 0),C(nE,{children:C(Du,{onClick:i,children:"Close"},void 0,!1,{fileName:$r,lineNumber:139,columnNumber:13},void 0)},void 0,!1,{fileName:$r,lineNumber:138,columnNumber:11},void 0)]},void 0,!0,{fileName:$r,lineNumber:96,columnNumber:9},void 0)]},void 0,!0,{fileName:$r,lineNumber:94,columnNumber:7},void 0),C(wv,{closeOnOverlayClick:!1,isOpen:o,onClose:c,isCentered:!0,children:[C(Kg,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:$r,lineNumber:150,columnNumber:9},void 0),C(Zg,{children:C(fS,{pb:6,pt:6,children:C(Sr,{justifyContent:"center",children:C(Oo,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:$r,lineNumber:154,columnNumber:15},void 0)},void 0,!1,{fileName:$r,lineNumber:153,columnNumber:13},void 0)},void 0,!1,{fileName:$r,lineNumber:152,columnNumber:11},void 0)},void 0,!1,{fileName:$r,lineNumber:151,columnNumber:9},void 0)]},void 0,!0,{fileName:$r,lineNumber:144,columnNumber:7},void 0)]},void 0,!0)};var _D="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/StatusIndicator.tsx";const uye=Ga(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),cye=()=>{const{isConnected:e,isProcessing:t,currentIteration:n,totalIterations:i,currentStatus:o,hasError:u,wasErrorSeen:c}=gt(uye),p=Sn();let h;e&&!u?h="status-good":h="status-bad";let v=o;return["generating","preparing","saving image","restoring faces","upscaling"].includes(v.toLowerCase())&&(h="status-working"),v&&t&&i>1&&(v+=` (${n}/${i})`),C(Ca,{label:u&&!c?"Click to clear, check logs for details":void 0,children:C(Oo,{cursor:u&&!c?"pointer":"initial",onClick:()=>{(u||!c)&&p(uU())},className:`status ${h}`,children:v},void 0,!1,{fileName:_D,lineNumber:83,columnNumber:7},void 0)},void 0,!1,{fileName:_D,lineNumber:82,columnNumber:5},void 0)};var ur="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SiteHeader.tsx";const fye=()=>{const{colorMode:e,toggleColorMode:t}=z8();ii("shift+d",()=>{t()},[e,t]);const n=e=="light"?C(bge,{},void 0,!1,{fileName:ur,lineNumber:27,columnNumber:48},void 0):C(Sge,{},void 0,!1,{fileName:ur,lineNumber:27,columnNumber:61},void 0),i=e=="light"?18:20;return C("div",{className:"site-header",children:[C("div",{className:"site-header-left-side",children:[C("img",{src:iye,alt:"invoke-ai-logo"},void 0,!1,{fileName:ur,lineNumber:35,columnNumber:9},void 0),C("h1",{children:["invoke ",C("strong",{children:"ai"},void 0,!1,{fileName:ur,lineNumber:37,columnNumber:18},void 0)]},void 0,!0,{fileName:ur,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:ur,lineNumber:34,columnNumber:7},void 0),C("div",{className:"site-header-right-side",children:[C(cye,{},void 0,!1,{fileName:ur,lineNumber:42,columnNumber:9},void 0),C(lye,{children:C(bi,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:C(W1e,{},void 0,!1,{fileName:ur,lineNumber:50,columnNumber:19},void 0)},void 0,!1,{fileName:ur,lineNumber:45,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:44,columnNumber:9},void 0),C(oye,{children:C(bi,{"aria-label":"Hotkeys",variant:"link",fontSize:24,size:"sm",icon:C(Y1e,{},void 0,!1,{fileName:ur,lineNumber:60,columnNumber:19},void 0)},void 0,!1,{fileName:ur,lineNumber:55,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:54,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Report Bug",placement:"bottom",children:C(bi,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:C(cv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI/issues",children:C($U,{},void 0,!1,{fileName:ur,lineNumber:75,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:71,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:65,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:64,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Github",placement:"bottom",children:C(bi,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:C(cv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI",children:C(uge,{},void 0,!1,{fileName:ur,lineNumber:89,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:88,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:82,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:81,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Discord",placement:"bottom",children:C(bi,{"aria-label":"Link to Discord Server",variant:"link",fontSize:20,size:"sm",icon:C(cv,{isExternal:!0,href:"https://discord.gg/ZmtBAhwWhy",children:C(lge,{},void 0,!1,{fileName:ur,lineNumber:103,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:102,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:95,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Theme",placement:"bottom",children:C(bi,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:i,icon:n},void 0,!1,{fileName:ur,lineNumber:110,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:109,columnNumber:9},void 0)]},void 0,!0,{fileName:ur,lineNumber:41,columnNumber:7},void 0)]},void 0,!0,{fileName:ur,lineNumber:33,columnNumber:5},void 0)};var Ys="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/Console.tsx";const dye=Ga(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),pye=Ga(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),mye=()=>{const e=Sn(),t=gt(dye),{shouldShowLogViewer:n,hasError:i,wasErrorSeen:o}=gt(pye),[u,c]=k.exports.useState(!0),p=k.exports.useRef(null);k.exports.useLayoutEffect(()=>{p.current!==null&&u&&(p.current.scrollTop=p.current.scrollHeight)},[u,t,n]);const h=()=>{e(uU()),e(wM(!n))};return ii("`",()=>{e(wM(!n))},[n]),C(Ui,{children:[n&&C(d$,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0},maxHeight:"90vh",children:C("div",{className:"console",ref:p,children:t.map((v,b)=>{const{timestamp:x,message:N,level:_}=v;return C("div",{className:`console-entry console-${_}-color`,children:[C("p",{className:"console-timestamp",children:[x,":"]},void 0,!0,{fileName:Ys,lineNumber:94,columnNumber:19},void 0),C("p",{className:"console-message",children:N},void 0,!1,{fileName:Ys,lineNumber:95,columnNumber:19},void 0)]},b,!0,{fileName:Ys,lineNumber:93,columnNumber:17},void 0)})},void 0,!1,{fileName:Ys,lineNumber:89,columnNumber:11},void 0)},void 0,!1,{fileName:Ys,lineNumber:81,columnNumber:9},void 0),n&&C(Ca,{hasArrow:!0,label:u?"Autoscroll On":"Autoscroll Off",children:C(bi,{className:`console-autoscroll-icon-button ${u&&"autoscroll-enabled"}`,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:C(cge,{},void 0,!1,{fileName:Ys,lineNumber:111,columnNumber:19},void 0),onClick:()=>c(!u)},void 0,!1,{fileName:Ys,lineNumber:104,columnNumber:11},void 0)},void 0,!1,{fileName:Ys,lineNumber:103,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:C(bi,{className:`console-toggle-icon-button ${(i||!o)&&"error-seen"}`,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?C(gge,{},void 0,!1,{fileName:Ys,lineNumber:126,columnNumber:39},void 0):C(mge,{},void 0,!1,{fileName:Ys,lineNumber:126,columnNumber:53},void 0),onClick:h},void 0,!1,{fileName:Ys,lineNumber:117,columnNumber:9},void 0)},void 0,!1,{fileName:Ys,lineNumber:116,columnNumber:7},void 0)]},void 0,!0)};function hye(){async function e(n=""){return await fetch(n,{method:"GET",cache:"no-cache"})}const t=()=>{const n=document.location;e(n+"/flaskwebgui-keep-server-alive").then(o=>o)};(!{BASE_URL:"./",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV||{BASE_URL:"./",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV==="production")&&document.addEventListener("DOMContentLoaded",()=>{t(),setInterval(t,3e3)})}var jf="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/app/App.tsx";hye();const vye=()=>{const e=Sn(),[t,n]=k.exports.useState(!1);return k.exports.useEffect(()=>{e(w0e()),n(!0)},[e]),t?C("div",{className:"App",children:[C(rye,{},void 0,!1,{fileName:jf,lineNumber:24,columnNumber:7},void 0),C("div",{className:"app-content",children:[C(fye,{},void 0,!1,{fileName:jf,lineNumber:26,columnNumber:9},void 0),C(Hbe,{},void 0,!1,{fileName:jf,lineNumber:27,columnNumber:9},void 0)]},void 0,!0,{fileName:jf,lineNumber:25,columnNumber:7},void 0),C("div",{className:"app-console",children:C(mye,{},void 0,!1,{fileName:jf,lineNumber:30,columnNumber:9},void 0)},void 0,!1,{fileName:jf,lineNumber:29,columnNumber:7},void 0)]},void 0,!0,{fileName:jf,lineNumber:23,columnNumber:5},void 0):C(g$,{},void 0,!1,{fileName:jf,lineNumber:34,columnNumber:5},void 0)};var $p="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/main.tsx";const b$=Dhe(h$);Q6.createRoot(document.getElementById("root")).render(C(Ae.StrictMode,{children:C(fhe,{store:h$,children:C(v$,{loading:C(g$,{},void 0,!1,{fileName:$p,lineNumber:21,columnNumber:29},void 0),persistor:b$,children:C(rme,{theme:ND,children:[C(xW,{initialColorMode:ND.config.initialColorMode},void 0,!1,{fileName:$p,lineNumber:23,columnNumber:11},void 0),C(vye,{},void 0,!1,{fileName:$p,lineNumber:24,columnNumber:11},void 0)]},void 0,!0,{fileName:$p,lineNumber:22,columnNumber:9},void 0)},void 0,!1,{fileName:$p,lineNumber:21,columnNumber:7},void 0)},void 0,!1,{fileName:$p,lineNumber:20,columnNumber:5},void 0)},void 0,!1,{fileName:$p,lineNumber:19,columnNumber:3},void 0)); diff --git a/frontend/dist/assets/index.556a5ea7.css b/frontend/dist/assets/index.556a5ea7.css new file mode 100644 index 0000000000..340a3f3251 --- /dev/null +++ b/frontend/dist/assets/index.556a5ea7.css @@ -0,0 +1 @@ +[data-theme=dark]{--white: rgb(255, 255, 255);--root-bg-color: rgb(10, 10, 10);--background-color: rgb(20, 20, 26);--background-color-secondary: rgb(16, 16, 22);--text-color: rgb(255, 255, 255);--text-color-secondary: rgb(160, 162, 188);--subtext-color: rgb(24, 24, 34);--subtext-color-bright: rgb(48, 48, 64);--border-color: rgb(30, 30, 46);--border-color-light: rgb(60, 60, 76);--invalid: rgb(255, 75, 75);--invalid-secondary: rgb(120, 5, 5);--border-color-invalid: rgb(255, 80, 50);--box-shadow-color-invalid: rgb(210, 30, 10);--svg-color: rgb(24, 24, 34);--progress-bar-color: rgb(100, 50, 245);--prompt-bg-color: rgb(10, 10, 10);--prompt-border-color: rgb(140, 110, 255);--prompt-box-shadow-color: rgb(80, 30, 210);--btn-svg-color: rgb(255, 255, 255);--btn-grey: rgb(30, 32, 42);--btn-grey-hover: rgb(46, 48, 68);--btn-purple: rgb(80, 40, 200);--btn-purple-hover: rgb(104, 60, 230);--btn-red: rgb(185, 55, 55);--btn-red-hover: rgb(255, 75, 75);--btn-load-more: rgb(30, 32, 42);--btn-load-more-hover: rgb(54, 56, 66);--switch-bg-color: rgb(100, 102, 110);--switch-bg-active-color: rgb(80, 40, 200);--tab-color: rgb(30, 32, 42);--tab-hover-color: rgb(36, 38, 48);--tab-list-bg: rgb(100, 50, 255);--tab-list-text: rgb(20, 20, 20);--tab-list-text-inactive: rgb(92, 94, 114);--tab-panel-bg: rgb(20, 22, 28);--metadata-bg-color: rgba(0, 0, 0, .7);--metadata-json-bg-color: rgba(255, 255, 255, .1);--status-good-color: rgb(125, 255, 100);--status-good-glow: rgb(40, 215, 40);--status-working-color: rgb(255, 175, 55);--status-working-glow: rgb(255, 160, 55);--status-bad-color: rgb(255, 90, 90);--status-bad-glow: rgb(255, 40, 40);--settings-modal-bg: rgb(30, 32, 42);--input-checkbox-bg: rgb(90, 90, 120);--input-checkbox-checked-bg: rgb(80, 40, 200);--input-checkbox-checked-tick: rgb(0, 0, 0);--error-level-info: rgb(200, 202, 224);--error-level-warning: rgb(255, 225, 105);--error-level-error: rgb(255, 81, 46);--console-bg-color: rgb(30, 30, 36);--console-border-color: rgb(80, 82, 112);--console-icon-button-bg-color: rgb(50, 53, 64);--console-icon-button-bg-color-hover: rgb(70, 73, 84);--img2img-img-bg-color: rgb(30, 32, 42);--gallery-resizeable-color: rgb(36, 38, 48)}[data-theme=light]{--white: rgb(255, 255, 255);--root-bg-color: rgb(255, 255, 255);--background-color: rgb(220, 222, 224);--background-color-secondary: rgb(204, 206, 208);--text-color: rgb(0, 0, 0);--text-color-secondary: rgb(40, 40, 40);--subtext-color: rgb(24, 24, 34);--subtext-color-bright: rgb(142, 144, 146);--border-color: rgb(200, 200, 200);--border-color-light: rgb(147, 147, 147);--invalid: rgb(255, 75, 75);--invalid-secondary: rgb(120, 5, 5);--border-color-invalid: rgb(255, 80, 50);--box-shadow-color-invalid: none;--svg-color: rgb(186, 188, 190);--progress-bar-color: rgb(235, 185, 5);--prompt-bg-color: rgb(225, 227, 229);--prompt-border-color: rgb(0, 0, 0);--prompt-box-shadow-color: rgb(217, 217, 217);--btn-svg-color: rgb(0, 0, 0);--btn-grey: rgb(220, 222, 224);--btn-grey-hover: rgb(230, 232, 234);--btn-purple: rgb(235, 185, 5);--btn-purple-hover: rgb(255, 200, 0);--btn-red: rgb(237, 51, 51);--btn-red-hover: rgb(255, 55, 55);--btn-load-more: rgb(202, 204, 206);--btn-load-more-hover: rgb(178, 180, 182);--switch-bg-color: rgb(178, 180, 182);--switch-bg-active-color: rgb(235, 185, 5);--tab-color: rgb(202, 204, 206);--tab-hover-color: rgb(206, 208, 210);--tab-list-bg: rgb(235, 185, 5);--tab-list-text: rgb(0, 0, 0);--tab-list-text-inactive: rgb(106, 108, 110);--tab-panel-bg: rgb(214, 216, 218);--metadata-bg-color: rgba(230, 230, 230, .9);--metadata-json-bg-color: rgba(0, 0, 0, .1);--status-good-color: rgb(21, 126, 0);--status-good-glow: var(--background-color);--status-working-color: rgb(235, 141, 0);--status-working-glow: var(--background-color);--status-bad-color: rgb(202, 0, 0);--status-bad-glow: var(--background-color);--settings-modal-bg: rgb(202, 204, 206);--input-checkbox-bg: rgb(90, 90, 120);--input-checkbox-checked-bg: rgb(235, 185, 5);--input-checkbox-checked-tick: rgb(0, 0, 0);--error-level-info: rgb(42, 42, 42);--error-level-warning: rgb(173, 121, 0);--error-level-error: rgb(145, 14, 0);--console-bg-color: rgb(220, 224, 230);--console-border-color: rgb(160, 162, 164);--console-icon-button-bg-color: var(--switch-bg-color);--console-icon-button-bg-color-hover: var(--console-border-color);--img2img-img-bg-color: rgb(180, 182, 184);--gallery-resizeable-color: rgb(192, 194, 196)}@font-face{font-family:Inter;src:url(./Inter.b9a8e5e2.ttf);font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:Inter;src:url(./Inter-Bold.790c108b.ttf);font-display:swap;font-weight:600;font-style:normal}@keyframes slideOut{0%{transform:translate(10rem)}to{transform:translate(0)}}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.App{display:grid;width:max-content}.app-content{display:grid;row-gap:1rem;margin:.6rem;padding:1rem;border-radius:.5rem;background-color:var(--background-color);grid-auto-rows:max-content;width:calc(100vw - 1.6rem);height:calc(100vh - 1.6rem);min-width:min-content}.app-console{z-index:9999}.site-header{display:grid;grid-template-columns:auto max-content}.site-header-left-side{display:grid;grid-template-columns:repeat(2,max-content);column-gap:.6rem;align-items:center}.site-header-left-side img{width:32px;height:32px}.site-header-left-side h1{font-size:1.4rem}.site-header-right-side{display:grid;grid-template-columns:repeat(7,max-content);align-items:center;column-gap:.5rem}.status{font-size:.8rem;font-weight:700}.status-good{color:var(--status-good-color);text-shadow:0 0 10px var(--status-good-glow)}.status-bad{color:var(--status-bad-color);text-shadow:0 0 10px var(--status-bad-glow)}.status-working{color:var(--status-working-color);text-shadow:0 0 10px var(--status-working-glow)}.settings-modal{background-color:var(--settings-modal-bg)!important;font-family:Inter}.settings-modal .settings-modal-content{display:grid;row-gap:2rem}.settings-modal .settings-modal-header{font-weight:700}.settings-modal .settings-modal-items{display:grid;row-gap:.5rem}.settings-modal .settings-modal-items .settings-modal-item{display:grid;grid-auto-flow:column;background-color:var(--background-color);padding:.4rem 1rem;border-radius:.5rem;justify-content:space-between;align-items:center}.settings-modal .settings-modal-reset{display:grid;row-gap:1rem}.settings-modal .settings-modal-reset button{min-width:100%;min-height:100%;background-color:var(--btn-red)}.settings-modal .settings-modal-reset button:hover{background-color:var(--btn-red-hover)}.settings-modal .settings-modal-reset button:disabled{background-color:#2d2d37}.settings-modal .settings-modal-reset button:disabled:hover{background-color:#2d2d37}.settings-modal .settings-modal-reset button svg{width:20px;height:20px;color:var(--btn-svg-color)}.hotkeys-modal{display:grid;padding:1rem;background-color:var(--settings-modal-bg)!important;row-gap:1rem;font-family:Inter}.hotkeys-modal h1{font-size:1.2rem;font-weight:700}.hotkeys-modal-items{display:grid;row-gap:.5rem;max-height:32rem;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.hotkeys-modal-items::-webkit-scrollbar{display:none}.hotkey-modal-item{display:grid;grid-template-columns:auto max-content;justify-content:space-between;align-items:center;background-color:var(--background-color);padding:.5rem 1rem;border-radius:.3rem}.hotkey-modal-item .hotkey-info{display:grid}.hotkey-modal-item .hotkey-info .hotkey-title{font-weight:700}.hotkey-modal-item .hotkey-info .hotkey-description{font-size:.9rem;color:var(--text-color-secondary)}.hotkey-modal-item .hotkey-key{font-size:.8rem;font-weight:700;border:2px solid var(--settings-modal-bg);padding:.2rem .5rem;border-radius:.3rem}.console{display:flex;flex-direction:column;background:var(--console-bg-color);overflow:auto;direction:column;font-family:monospace;padding:0 1rem 1rem 3rem;border-top-width:.3rem;border-color:var(--console-border-color)}.console .console-info-color{color:var(--error-level-info)}.console .console-warning-color{color:var(--error-level-warning)}.console .console-error-color{color:var(--status-bad-color)}.console .console-entry{display:flex;column-gap:.5rem}.console .console-entry .console-timestamp{font-weight:semibold}.console .console-entry .console-message{word-break:break-all}.console-toggle-icon-button{background:var(--console-icon-button-bg-color)!important;position:fixed!important;left:.5rem;bottom:.5rem}.console-toggle-icon-button:hover{background:var(--console-icon-button-bg-color-hover)!important}.console-toggle-icon-button.error-seen,.console-toggle-icon-button.error-seen:hover{background:var(--status-bad-color)!important}.console-autoscroll-icon-button{background:var(--console-icon-button-bg-color)!important;position:fixed!important;left:.5rem;bottom:3rem}.console-autoscroll-icon-button:hover{background:var(--console-icon-button-bg-color-hover)!important}.console-autoscroll-icon-button.autoscroll-enabled{background:var(--btn-purple)!important}.console-autoscroll-icon-button.autoscroll-enabled:hover{background:var(--btn-purple-hover)!important}.prompt-bar{display:grid;row-gap:1rem}.prompt-bar input,.prompt-bar textarea{background-color:var(--prompt-bg-color);font-size:1rem;border:2px solid var(--border-color)}.prompt-bar input:hover,.prompt-bar textarea:hover{border:2px solid var(--border-color-light)}.prompt-bar input:focus-visible,.prompt-bar textarea:focus-visible{border:2px solid var(--prompt-border-color);box-shadow:0 0 10px 0 var(--prompt-box-shadow-color)}.prompt-bar input[aria-invalid=true],.prompt-bar textarea[aria-invalid=true]{border:2px solid var(--border-color-invalid);box-shadow:0 0 10px 0 var(--box-shadow-color-invalid)}.prompt-bar input:disabled,.prompt-bar textarea:disabled{border:2px solid var(--border-color);box-shadow:none}.prompt-bar textarea{min-height:10rem}.process-buttons{display:grid;grid-template-columns:auto max-content;column-gap:.5rem}.process-buttons .invoke-btn{min-width:5rem;min-height:100%;background-color:var(--btn-purple)}.process-buttons .invoke-btn:hover{background-color:var(--btn-purple-hover)}.process-buttons .invoke-btn:disabled{background-color:#2d2d37}.process-buttons .invoke-btn:disabled:hover{background-color:#2d2d37}.process-buttons .invoke-btn svg{width:20px;height:20px;color:var(--btn-svg-color)}.process-buttons .cancel-btn{min-width:3rem;min-height:100%;background-color:var(--btn-red)}.process-buttons .cancel-btn:hover{background-color:var(--btn-red-hover)}.process-buttons .cancel-btn:disabled{background-color:#2d2d37}.process-buttons .cancel-btn:disabled:hover{background-color:#2d2d37}.process-buttons .cancel-btn svg{width:20px;height:20px;color:var(--btn-svg-color)}.main-options,.main-options-list{display:grid;row-gap:1rem}.main-options-row{display:grid;grid-template-columns:repeat(3,auto);column-gap:1rem;max-width:22.5rem}.main-option-block{border-radius:.5rem;grid-template-columns:auto!important;row-gap:.4rem}.main-option-block .number-input-label,.main-option-block .iai-select-label{width:100%;font-size:.9rem;font-weight:700}.main-option-block .number-input-entry{padding:0;height:2.4rem}.main-option-block .iai-select-picker{height:2.4rem;border-radius:.3rem}.advanced_options_checker{display:grid;grid-template-columns:repeat(2,max-content);column-gap:.5rem;align-items:center;background-color:var(--background-color-secondary);padding:1rem;font-weight:700;border-radius:.5rem}.advanced_options_checker input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:var(--input-checkbox-bg);width:1rem;height:1rem;border-radius:.2rem;display:grid;place-content:center}.advanced_options_checker input[type=checkbox]:before{content:"";width:1rem;height:1rem;transform:scale(0);transition:.12s transform ease-in-out;border-radius:.2rem;box-shadow:inset 1rem 1rem var(--input-checkbox-checked-tick);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}.advanced_options_checker input[type=checkbox]:checked{background-color:var(--input-checkbox-checked-bg)}.advanced_options_checker input[type=checkbox]:checked:before{transform:scale(.7)}.advanced-settings{display:grid;row-gap:.5rem}.advanced-settings-item{display:grid;max-width:22.5rem;border:none;border-top:0px;border-radius:.4rem}.advanced-settings-item[aria-expanded=true]{background-color:var(--tab-hover-color);border-radius:0 0 .4rem .4rem}.advanced-settings-panel{background-color:var(--tab-panel-bg);border-radius:0 0 .4rem .4rem;border:2px solid var(--tab-hover-color)}.advanced-settings-header{border-radius:.4rem}.advanced-settings-header[aria-expanded=true]{background-color:var(--tab-color);border-radius:.4rem .4rem 0 0}.advanced-settings-header:hover{background-color:var(--tab-hover-color)!important}.upscale-options{display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.progress-bar{background-color:var(--root-bg-color)}.progress-bar div{background-color:var(--progress-bar-color)}.current-image-display{display:grid;grid-template-areas:"current-image-tools" "current-image-preview";grid-template-rows:auto 1fr;justify-items:center;background-color:var(--background-color-secondary);border-radius:.5rem}.current-image-tools{width:100%;height:100%;display:grid;justify-content:center}.current-image-options{display:grid;grid-auto-flow:column;padding:1rem;height:fit-content;gap:.5rem}.current-image-options button{min-width:3rem;min-height:100%;background-color:var(--btn-grey)}.current-image-options button:hover{background-color:var(--btn-grey-hover)}.current-image-options button:disabled{background-color:#2d2d37}.current-image-options button:disabled:hover{background-color:#2d2d37}.current-image-options button svg{width:22px;height:22px;color:var(--btn-svg-color)}.current-image-preview{grid-area:current-image-preview;position:relative;justify-content:center;align-items:center;display:grid;width:100%;grid-template-areas:"current-image-content"}.current-image-preview img{grid-area:current-image-content;background-color:var(--img2img-img-bg-color);border-radius:.5rem;object-fit:contain;width:auto;height:calc(100vh - 13rem);max-height:calc(100vh - 13rem)}.current-image-metadata{grid-area:current-image-preview}.current-image-next-prev-buttons{grid-area:current-image-content;display:flex;justify-content:space-between;z-index:1;height:100%;pointer-events:none}.next-prev-button-trigger-area{width:7rem;height:100%;width:15%;display:grid;align-items:center;pointer-events:auto}.next-prev-button-trigger-area.prev-button-trigger-area{justify-content:flex-start}.next-prev-button-trigger-area.next-button-trigger-area{justify-content:flex-end}.next-prev-button{font-size:4rem;fill:var(--white);filter:drop-shadow(0 0 1rem var(--text-color-secondary));opacity:70%}.current-image-display-placeholder{background-color:var(--background-color-secondary);display:grid;display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:.5rem}.current-image-display-placeholder svg{width:10rem;height:10rem;color:var(--svg-color)}.image-gallery-area .image-gallery-popup-btn{position:absolute;top:50%;right:1rem;border-radius:.5rem 0 0 .5rem;padding:0 .5rem;min-width:1rem;min-height:6rem;background-color:var(--btn-grey)}.image-gallery-area .image-gallery-popup-btn:hover{background-color:var(--btn-grey-hover)}.image-gallery-area .image-gallery-popup-btn:disabled{background-color:#2d2d37}.image-gallery-area .image-gallery-popup-btn:disabled:hover{background-color:#2d2d37}.image-gallery-area .image-gallery-popup-btn svg{width:20px;height:20px;color:var(--btn-svg-color)}.image-gallery-popup{background-color:var(--tab-color);padding:1rem;animation:slideOut .3s ease-out;display:flex;flex-direction:column;row-gap:1rem;border-radius:.5rem;border-left-width:.2rem;min-width:300px;border-color:var(--gallery-resizeable-color)}.image-gallery-header{display:flex;align-items:center}.image-gallery-header h1{font-weight:700}.image-gallery-close-btn{background-color:var(--btn-load-more)!important}.image-gallery-close-btn:hover{background-color:var(--btn-load-more-hover)!important}.image-gallery-container{display:flex;flex-direction:column;gap:1rem;max-height:calc(100vh - 13rem);overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.image-gallery-container::-webkit-scrollbar{display:none}.masonry-grid{display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:.5rem;width:auto}.masonry-grid_column{padding-left:.5rem;background-clip:padding-box}.masonry-grid_column>.hoverable-image{background:var(--tab-color);margin-bottom:.5rem}.image-gallery-load-more-btn{background-color:var(--btn-load-more)!important;font-size:.85rem!important;font-family:Inter}.image-gallery-load-more-btn:disabled:hover{background-color:var(--btn-load-more)!important}.image-gallery-load-more-btn:hover{background-color:var(--btn-load-more-hover)!important}.image-gallery-container-placeholder{display:flex;background-color:var(--background-color-secondary);border-radius:.5rem;place-items:center;padding:2rem 0}.image-gallery-container-placeholder p{color:var(--subtext-color-bright);font-family:Inter}.image-gallery-container-placeholder svg{width:5rem;height:5rem;color:var(--svg-color)}.hoverable-image{display:flex;justify-content:center;transition:transform .2s ease-out}.hoverable-image:hover{cursor:pointer;border-radius:.5rem;z-index:2}.hoverable-image .hoverable-image-image{width:100%;height:100%;object-fit:cover;max-width:100%;max-height:100%}.hoverable-image .hoverable-image-content{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;align-items:center;justify-content:center}.hoverable-image .hoverable-image-content .hoverable-image-check{fill:var(--status-good-color)}.hoverable-image .hoverable-image-icons{position:absolute;bottom:-2rem;display:grid;width:min-content;grid-template-columns:repeat(2,max-content);border-radius:.4rem;background-color:var(--background-color-secondary);padding:.2rem;gap:.2rem;grid-auto-rows:max-content}.hoverable-image .hoverable-image-icons button{width:12px;height:12px;border-radius:.2rem;padding:10px 0;flex-shrink:2}.hoverable-image .hoverable-image-icons button svg{width:12px;height:12px}.popover-content{background-color:var(--background-color-secondary)!important;border:none!important;border-top:0px;background-color:var(--tab-hover-color);border-radius:0 0 .4rem .4rem}.popover-arrow{background:var(--tab-hover-color)!important;box-shadow:none}.popover-options{background:var(--tab-panel-bg);border-radius:0 0 .4rem .4rem;border:2px solid var(--tab-hover-color);padding:.75rem 1rem;display:grid;grid-auto-rows:max-content;grid-row-gap:.5rem;justify-content:space-between}.popover-header{background:var(--tab-hover-color);border-radius:.4rem .4rem 0 0;font-weight:700;border:none;padding-left:1rem!important}.upscale-popover{width:23rem!important}.image-metadata-viewer{width:100%;border-radius:.5rem;padding:1rem;background-color:var(--metadata-bg-color);overflow:scroll;max-height:calc(100vh - 11.4rem);z-index:10}.image-json-viewer{border-radius:.5rem;margin:0 .5rem 1rem;padding:1rem;overflow-x:scroll;word-break:break-all;background-color:var(--metadata-json-bg-color)}.app-tabs{display:grid!important;grid-template-columns:min-content auto;column-gap:1rem}.app-tabs-list{display:grid;row-gap:.3rem;grid-auto-rows:max-content;color:var(--tab-list-text-inactive)}.app-tabs-list button{font-size:.85rem;padding:.5rem}.app-tabs-list button:hover{background-color:var(--tab-hover-color);border-radius:.3rem}.app-tabs-list button svg{width:26px;height:26px}.app-tabs-list button[aria-selected=true]{background-color:var(--tab-list-bg);color:var(--tab-list-text);font-weight:700;border-radius:.3rem;border:none}.app-tabs-panels .app-tabs-panel{padding:0}.text-to-image-workarea{display:grid;grid-template-columns:max-content auto;column-gap:1rem}.text-to-image-panel{display:grid;row-gap:1rem;grid-auto-rows:max-content;height:calc(100vh - 7rem);overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.text-to-image-panel::-webkit-scrollbar{display:none}.text-to-image-display{display:grid;grid-template-areas:"text-to-image-display";column-gap:.5rem}.text-to-image-display .current-image-display,.text-to-image-display .current-image-display-placeholder{grid-area:text-to-image-display;height:calc(100vh - 7rem)}.text-to-image-display .image-gallery-area{height:100%;z-index:2;place-self:end}.image-to-image-workarea{display:grid;grid-template-columns:max-content auto;column-gap:1rem}.image-to-image-panel{display:grid;row-gap:1rem;grid-auto-rows:max-content;width:22.5rem;height:calc(100vh - 7rem);overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.image-to-image-panel::-webkit-scrollbar{display:none}.image-to-image-display-area{display:grid;column-gap:.5rem}.image-to-image-display-area .image-gallery-area{z-index:2;height:100%}.image-to-image-strength-main-option{display:grid;grid-template-columns:none!important}.image-to-image-strength-main-option .number-input-entry{padding:0 1rem}.image-to-image-display{border-radius:.5rem;background-color:var(--background-color-secondary);display:grid;height:calc(100vh - 7rem)}.image-to-image-display .current-image-options{grid-auto-columns:max-content;justify-self:center;align-self:start}.image-to-image-single-preview{display:grid;column-gap:.5rem;padding:0 1rem;place-content:center}.image-to-image-dual-preview-container{display:grid;grid-template-areas:"img2img-preview"}.image-to-image-dual-preview{grid-area:img2img-preview;display:grid;grid-template-columns:1fr 1fr;column-gap:.5rem;padding:0 1rem;place-content:center}.image-to-image-dual-preview .current-image-preview img{height:calc(100vh - 15rem);max-height:calc(100vh - 15rem)}.img2img-metadata{grid-area:img2img-preview;z-index:3}.init-image-preview{display:grid;grid-template-areas:"init-image-content";justify-content:center;align-items:center;border-radius:.5rem}.init-image-preview .init-image-preview-header{grid-area:init-image-content;z-index:2;display:grid;grid-template-columns:auto max-content;height:max-content;align-items:center;align-self:start;padding:1rem;border-radius:.5rem}.init-image-preview .init-image-preview-header h1{padding:.2rem .6rem;border-radius:.4rem;background-color:var(--tab-hover-color);width:max-content;font-weight:700;font-size:.85rem}.init-image-preview .init-image-image{grid-area:init-image-content}.init-image-preview .init-image-image img{border-radius:.5rem;object-fit:contain;background-color:var(--img2img-img-bg-color);width:auto;height:calc(100vh - 15rem);max-height:calc(100vh - 15rem)}.image-to-image-upload-btn{display:grid;width:100%;height:calc(100vh - 7rem)}.image-to-image-upload-btn button{overflow:hidden;width:100%;height:100%;font-size:1.5rem;color:var(--text-color-secondary);background-color:var(--background-color-secondary)}.image-to-image-upload-btn button:hover{background-color:var(--img2img-img-bg-color)}.number-input{display:grid;grid-template-columns:max-content auto;column-gap:1rem;align-items:center}.number-input .number-input-label{color:var(--text-color-secondary);margin-right:0}.number-input .number-input-field{display:grid;grid-template-columns:auto max-content;column-gap:.5rem;align-items:center;background-color:var(--background-color-secondary);border:2px solid var(--border-color);border-radius:.2rem}.number-input .number-input-entry{border:none;font-weight:700;width:100%;padding-inline-end:0}.number-input .number-input-entry:focus{outline:none;border:2px solid var(--prompt-border-color);box-shadow:0 0 10px 0 var(--prompt-box-shadow-color)}.number-input .number-input-entry:disabled{opacity:.2}.number-input .number-input-stepper{display:grid;padding-right:.7rem}.number-input .number-input-stepper svg{width:12px;height:12px}.number-input .number-input-stepper .number-input-stepper-button{border:none}.input{display:grid;grid-template-columns:max-content auto;column-gap:1rem;align-items:center}.input .input-label{color:var(--text-color-secondary);margin-right:0}.input .input-entry{background-color:var(--background-color-secondary);border:2px solid var(--border-color);border-radius:.2rem;font-weight:700}.input .input-entry:focus{outline:none;border:2px solid var(--prompt-border-color);box-shadow:0 0 10px 0 var(--prompt-box-shadow-color)}.input .input-entry:disabled{opacity:.2}.input .input-entry[aria-invalid=true]{outline:none;border:2px solid var(--border-color-invalid);box-shadow:0 0 10px 0 var(--box-shadow-color-invalid)}.iai-select{display:grid;grid-template-columns:repeat(2,max-content);column-gap:1rem;align-items:center;width:max-content}.iai-select .iai-select-label{color:var(--text-color-secondary);margin-right:0}.iai-select .iai-select-picker{border:2px solid var(--border-color);background-color:var(--background-color-secondary);font-weight:700}.iai-select .iai-select-picker:focus{outline:none;border:2px solid var(--prompt-border-color);box-shadow:0 0 10px 0 var(--prompt-box-shadow-color)}.iai-select .iai-select-option{background-color:var(--background-color-secondary)}.chakra-switch span,.switch-button span{background-color:var(--switch-bg-color)}.chakra-switch span span,.switch-button span span{background-color:var(--white)}.chakra-switch span[data-checked],.switch-button span[data-checked]{background:var(--switch-bg-active-color)}.chakra-switch span[data-checked] span,.switch-button span[data-checked] span{background-color:var(--white)}.work-in-progress{display:grid;width:100%;height:calc(100vh - 7rem);grid-auto-rows:max-content;background-color:var(--background-color-secondary);border-radius:.4rem;place-content:center;place-items:center;row-gap:1rem}.work-in-progress h1{font-size:2rem;font-weight:700}.work-in-progress p{text-align:center;max-width:50rem;color:var(--subtext-color-bright)}.guide-popover-arrow{background-color:var(--tab-panel-bg)!important;box-shadow:none!important}.guide-popover-content{background-color:var(--background-color-secondary)!important;border:none!important}.guide-popover-guide-content{background:var(--tab-panel-bg);border:2px solid var(--tab-hover-color);border-radius:.4rem;padding:.75rem 1rem;display:grid;grid-template-rows:repeat(auto-fill,1fr);grid-row-gap:.5rem;justify-content:space-between}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{-ms-overflow-style:none;scrollbar-width:none;background-color:var(--root-bg-color)}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}#root{background-color:var(--root-bg-color);color:var(--text-color);font-family:Inter,Arial,Helvetica,sans-serif} diff --git a/frontend/dist/assets/index.58175ea1.css b/frontend/dist/assets/index.58175ea1.css deleted file mode 100644 index 867d7a282a..0000000000 --- a/frontend/dist/assets/index.58175ea1.css +++ /dev/null @@ -1 +0,0 @@ -[data-theme=dark]{--white: rgb(255, 255, 255);--root-bg-color: rgb(10, 10, 10);--background-color: rgb(20, 20, 26);--background-color-secondary: rgb(16, 16, 22);--text-color: rgb(255, 255, 255);--text-color-secondary: rgb(160, 162, 188);--subtext-color: rgb(24, 24, 34);--subtext-color-bright: rgb(48, 48, 64);--border-color: rgb(30, 30, 46);--border-color-light: rgb(60, 60, 76);--invalid: rgb(255, 75, 75);--invalid-secondary: rgb(120, 5, 5);--border-color-invalid: rgb(255, 80, 50);--box-shadow-color-invalid: rgb(210, 30, 10);--svg-color: rgb(24, 24, 34);--progress-bar-color: rgb(100, 50, 245);--prompt-bg-color: rgb(10, 10, 10);--prompt-border-color: rgb(140, 110, 255);--prompt-box-shadow-color: rgb(80, 30, 210);--btn-svg-color: rgb(255, 255, 255);--btn-grey: rgb(30, 32, 42);--btn-grey-hover: rgb(46, 48, 68);--btn-purple: rgb(80, 40, 200);--btn-purple-hover: rgb(104, 60, 230);--btn-red: rgb(185, 55, 55);--btn-red-hover: rgb(255, 75, 75);--btn-load-more: rgb(30, 32, 42);--btn-load-more-hover: rgb(54, 56, 66);--switch-bg-color: rgb(100, 102, 110);--switch-bg-active-color: rgb(80, 40, 200);--tab-color: rgb(30, 32, 42);--tab-hover-color: rgb(36, 38, 48);--tab-list-bg: rgb(100, 50, 255);--tab-list-text: rgb(20, 20, 20);--tab-list-text-inactive: rgb(92, 94, 114);--tab-panel-bg: rgb(20, 22, 28);--metadata-bg-color: rgba(0, 0, 0, .7);--metadata-json-bg-color: rgba(255, 255, 255, .1);--status-good-color: rgb(125, 255, 100);--status-good-glow: rgb(40, 215, 40);--status-working-color: rgb(255, 175, 55);--status-working-glow: rgb(255, 160, 55);--status-bad-color: rgb(255, 90, 90);--status-bad-glow: rgb(255, 40, 40);--settings-modal-bg: rgb(30, 32, 42);--input-checkbox-bg: rgb(90, 90, 120);--input-checkbox-checked-bg: rgb(80, 40, 200);--input-checkbox-checked-tick: rgb(0, 0, 0);--error-level-info: rgb(200, 202, 224);--error-level-warning: rgb(255, 225, 105);--error-level-error: rgb(255, 81, 46);--console-bg-color: rgb(30, 30, 36);--console-border-color: rgb(80, 82, 112);--console-icon-button-bg-color: rgb(50, 53, 64);--console-icon-button-bg-color-hover: rgb(70, 73, 84);--img2img-img-bg-color: rgb(30, 32, 42);--gallery-resizeable-color: rgb(36, 38, 48)}[data-theme=light]{--white: rgb(255, 255, 255);--root-bg-color: rgb(255, 255, 255);--background-color: rgb(220, 222, 224);--background-color-secondary: rgb(204, 206, 208);--text-color: rgb(0, 0, 0);--text-color-secondary: rgb(40, 40, 40);--subtext-color: rgb(24, 24, 34);--subtext-color-bright: rgb(142, 144, 146);--border-color: rgb(200, 200, 200);--border-color-light: rgb(147, 147, 147);--invalid: rgb(255, 75, 75);--invalid-secondary: rgb(120, 5, 5);--border-color-invalid: rgb(255, 80, 50);--box-shadow-color-invalid: none;--svg-color: rgb(186, 188, 190);--progress-bar-color: rgb(235, 185, 5);--prompt-bg-color: rgb(225, 227, 229);--prompt-border-color: rgb(0, 0, 0);--prompt-box-shadow-color: rgb(217, 217, 217);--btn-svg-color: rgb(0, 0, 0);--btn-grey: rgb(220, 222, 224);--btn-grey-hover: rgb(230, 232, 234);--btn-purple: rgb(235, 185, 5);--btn-purple-hover: rgb(255, 200, 0);--btn-red: rgb(237, 51, 51);--btn-red-hover: rgb(255, 55, 55);--btn-load-more: rgb(202, 204, 206);--btn-load-more-hover: rgb(178, 180, 182);--switch-bg-color: rgb(178, 180, 182);--switch-bg-active-color: rgb(235, 185, 5);--tab-color: rgb(202, 204, 206);--tab-hover-color: rgb(206, 208, 210);--tab-list-bg: rgb(235, 185, 5);--tab-list-text: rgb(0, 0, 0);--tab-list-text-inactive: rgb(106, 108, 110);--tab-panel-bg: rgb(214, 216, 218);--metadata-bg-color: rgba(230, 230, 230, .9);--metadata-json-bg-color: rgba(0, 0, 0, .1);--status-good-color: rgb(21, 126, 0);--status-good-glow: var(--background-color);--status-working-color: rgb(235, 141, 0);--status-working-glow: var(--background-color);--status-bad-color: rgb(202, 0, 0);--status-bad-glow: var(--background-color);--settings-modal-bg: rgb(202, 204, 206);--input-checkbox-bg: rgb(90, 90, 120);--input-checkbox-checked-bg: rgb(235, 185, 5);--input-checkbox-checked-tick: rgb(0, 0, 0);--error-level-info: rgb(42, 42, 42);--error-level-warning: rgb(173, 121, 0);--error-level-error: rgb(145, 14, 0);--console-bg-color: rgb(220, 224, 230);--console-border-color: rgb(160, 162, 164);--console-icon-button-bg-color: var(--switch-bg-color);--console-icon-button-bg-color-hover: var(--console-border-color);--img2img-img-bg-color: rgb(180, 182, 184);--gallery-resizeable-color: rgb(192, 194, 196)}@font-face{font-family:Inter;src:url(/assets/Inter.b9a8e5e2.ttf);font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:Inter;src:url(/assets/Inter-Bold.790c108b.ttf);font-display:swap;font-weight:600;font-style:normal}@keyframes slideOut{0%{transform:translate(10rem)}to{transform:translate(0)}}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.App{display:grid;width:max-content}.app-content{display:grid;row-gap:1rem;margin:.6rem;padding:1rem;border-radius:.5rem;background-color:var(--background-color);grid-auto-rows:max-content;width:calc(100vw - 1.6rem);height:calc(100vh - 1.6rem);min-width:min-content}.app-console{z-index:9999}.site-header{display:grid;grid-template-columns:auto max-content}.site-header-left-side{display:grid;grid-template-columns:repeat(2,max-content);column-gap:.6rem;align-items:center}.site-header-left-side img{width:32px;height:32px}.site-header-left-side h1{font-size:1.4rem}.site-header-right-side{display:grid;grid-template-columns:repeat(7,max-content);align-items:center;column-gap:.5rem}.status{font-size:.8rem;font-weight:700}.status-good{color:var(--status-good-color);text-shadow:0 0 10px var(--status-good-glow)}.status-bad{color:var(--status-bad-color);text-shadow:0 0 10px var(--status-bad-glow)}.status-working{color:var(--status-working-color);text-shadow:0 0 10px var(--status-working-glow)}.settings-modal{background-color:var(--settings-modal-bg)!important;font-family:Inter}.settings-modal .settings-modal-content{display:grid;row-gap:2rem}.settings-modal .settings-modal-header{font-weight:700}.settings-modal .settings-modal-items{display:grid;row-gap:.5rem}.settings-modal .settings-modal-items .settings-modal-item{display:grid;grid-auto-flow:column;background-color:var(--background-color);padding:.4rem 1rem;border-radius:.5rem;justify-content:space-between;align-items:center}.settings-modal .settings-modal-reset{display:grid;row-gap:1rem}.settings-modal .settings-modal-reset button{min-width:100%;min-height:100%;background-color:var(--btn-red)}.settings-modal .settings-modal-reset button:hover{background-color:var(--btn-red-hover)}.settings-modal .settings-modal-reset button:disabled{background-color:#2d2d37}.settings-modal .settings-modal-reset button:disabled:hover{background-color:#2d2d37}.settings-modal .settings-modal-reset button svg{width:20px;height:20px;color:var(--btn-svg-color)}.hotkeys-modal{display:grid;padding:1rem;background-color:var(--settings-modal-bg)!important;row-gap:1rem;font-family:Inter}.hotkeys-modal h1{font-size:1.2rem;font-weight:700}.hotkeys-modal-items{display:grid;row-gap:.5rem;max-height:32rem;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.hotkeys-modal-items::-webkit-scrollbar{display:none}.hotkey-modal-item{display:grid;grid-template-columns:auto max-content;justify-content:space-between;align-items:center;background-color:var(--background-color);padding:.5rem 1rem;border-radius:.3rem}.hotkey-modal-item .hotkey-info{display:grid}.hotkey-modal-item .hotkey-info .hotkey-title{font-weight:700}.hotkey-modal-item .hotkey-info .hotkey-description{font-size:.9rem;color:var(--text-color-secondary)}.hotkey-modal-item .hotkey-key{font-size:.8rem;font-weight:700;border:2px solid var(--settings-modal-bg);padding:.2rem .5rem;border-radius:.3rem}.console{display:flex;flex-direction:column;background:var(--console-bg-color);overflow:auto;direction:column;font-family:monospace;padding:0 1rem 1rem 3rem;border-top-width:.3rem;border-color:var(--console-border-color)}.console .console-info-color{color:var(--error-level-info)}.console .console-warning-color{color:var(--error-level-warning)}.console .console-error-color{color:var(--status-bad-color)}.console .console-entry{display:flex;column-gap:.5rem}.console .console-entry .console-timestamp{font-weight:semibold}.console .console-entry .console-message{word-break:break-all}.console-toggle-icon-button{background:var(--console-icon-button-bg-color)!important;position:fixed!important;left:.5rem;bottom:.5rem}.console-toggle-icon-button:hover{background:var(--console-icon-button-bg-color-hover)!important}.console-toggle-icon-button.error-seen,.console-toggle-icon-button.error-seen:hover{background:var(--status-bad-color)!important}.console-autoscroll-icon-button{background:var(--console-icon-button-bg-color)!important;position:fixed!important;left:.5rem;bottom:3rem}.console-autoscroll-icon-button:hover{background:var(--console-icon-button-bg-color-hover)!important}.console-autoscroll-icon-button.autoscroll-enabled{background:var(--btn-purple)!important}.console-autoscroll-icon-button.autoscroll-enabled:hover{background:var(--btn-purple-hover)!important}.prompt-bar{display:grid;row-gap:1rem}.prompt-bar input,.prompt-bar textarea{background-color:var(--prompt-bg-color);font-size:1rem;border:2px solid var(--border-color)}.prompt-bar input:hover,.prompt-bar textarea:hover{border:2px solid var(--border-color-light)}.prompt-bar input:focus-visible,.prompt-bar textarea:focus-visible{border:2px solid var(--prompt-border-color);box-shadow:0 0 10px 0 var(--prompt-box-shadow-color)}.prompt-bar input[aria-invalid=true],.prompt-bar textarea[aria-invalid=true]{border:2px solid var(--border-color-invalid);box-shadow:0 0 10px 0 var(--box-shadow-color-invalid)}.prompt-bar input:disabled,.prompt-bar textarea:disabled{border:2px solid var(--border-color);box-shadow:none}.prompt-bar textarea{min-height:10rem}.process-buttons{display:grid;grid-template-columns:auto max-content;column-gap:.5rem}.process-buttons .invoke-btn{min-width:5rem;min-height:100%;background-color:var(--btn-purple)}.process-buttons .invoke-btn:hover{background-color:var(--btn-purple-hover)}.process-buttons .invoke-btn:disabled{background-color:#2d2d37}.process-buttons .invoke-btn:disabled:hover{background-color:#2d2d37}.process-buttons .invoke-btn svg{width:20px;height:20px;color:var(--btn-svg-color)}.process-buttons .cancel-btn{min-width:3rem;min-height:100%;background-color:var(--btn-red)}.process-buttons .cancel-btn:hover{background-color:var(--btn-red-hover)}.process-buttons .cancel-btn:disabled{background-color:#2d2d37}.process-buttons .cancel-btn:disabled:hover{background-color:#2d2d37}.process-buttons .cancel-btn svg{width:20px;height:20px;color:var(--btn-svg-color)}.main-options,.main-options-list{display:grid;row-gap:1rem}.main-options-row{display:grid;grid-template-columns:repeat(3,auto);column-gap:1rem;max-width:22.5rem}.main-option-block{border-radius:.5rem;grid-template-columns:auto!important;row-gap:.4rem}.main-option-block .number-input-label,.main-option-block .iai-select-label{width:100%;font-size:.9rem;font-weight:700}.main-option-block .number-input-entry{padding:0;height:2.4rem}.main-option-block .iai-select-picker{height:2.4rem;border-radius:.3rem}.advanced_options_checker{display:grid;grid-template-columns:repeat(2,max-content);column-gap:.5rem;align-items:center;background-color:var(--background-color-secondary);padding:1rem;font-weight:700;border-radius:.5rem}.advanced_options_checker input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:var(--input-checkbox-bg);width:1rem;height:1rem;border-radius:.2rem;display:grid;place-content:center}.advanced_options_checker input[type=checkbox]:before{content:"";width:1rem;height:1rem;transform:scale(0);transition:.12s transform ease-in-out;border-radius:.2rem;box-shadow:inset 1rem 1rem var(--input-checkbox-checked-tick);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}.advanced_options_checker input[type=checkbox]:checked{background-color:var(--input-checkbox-checked-bg)}.advanced_options_checker input[type=checkbox]:checked:before{transform:scale(.7)}.advanced-settings{display:grid;row-gap:.5rem}.advanced-settings-item{display:grid;max-width:22.5rem;border:none;border-top:0px;border-radius:.4rem}.advanced-settings-item[aria-expanded=true]{background-color:var(--tab-hover-color);border-radius:0 0 .4rem .4rem}.advanced-settings-panel{background-color:var(--tab-panel-bg);border-radius:0 0 .4rem .4rem;border:2px solid var(--tab-hover-color)}.advanced-settings-header{border-radius:.4rem}.advanced-settings-header[aria-expanded=true]{background-color:var(--tab-color);border-radius:.4rem .4rem 0 0}.advanced-settings-header:hover{background-color:var(--tab-hover-color)!important}.upscale-options{display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.progress-bar{background-color:var(--root-bg-color)}.progress-bar div{background-color:var(--progress-bar-color)}.current-image-display{display:grid;grid-template-areas:"current-image-tools" "current-image-preview";grid-template-rows:auto 1fr;justify-items:center;background-color:var(--background-color-secondary);border-radius:.5rem}.current-image-tools{width:100%;height:100%;display:grid;justify-content:center}.current-image-options{display:grid;grid-auto-flow:column;padding:1rem;height:fit-content;gap:.5rem}.current-image-options button{min-width:3rem;min-height:100%;background-color:var(--btn-grey)}.current-image-options button:hover{background-color:var(--btn-grey-hover)}.current-image-options button:disabled{background-color:#2d2d37}.current-image-options button:disabled:hover{background-color:#2d2d37}.current-image-options button svg{width:22px;height:22px;color:var(--btn-svg-color)}.current-image-preview{grid-area:current-image-preview;position:relative;justify-content:center;align-items:center;display:grid;width:100%;grid-template-areas:"current-image-content"}.current-image-preview img{grid-area:current-image-content;background-color:var(--img2img-img-bg-color);border-radius:.5rem;object-fit:contain;width:auto;height:calc(100vh - 13rem);max-height:calc(100vh - 13rem)}.current-image-metadata{grid-area:current-image-preview}.current-image-next-prev-buttons{grid-area:current-image-content;display:flex;justify-content:space-between;z-index:1;height:100%;pointer-events:none}.next-prev-button-trigger-area{width:7rem;height:100%;width:15%;display:grid;align-items:center;pointer-events:auto}.next-prev-button-trigger-area.prev-button-trigger-area{justify-content:flex-start}.next-prev-button-trigger-area.next-button-trigger-area{justify-content:flex-end}.next-prev-button{font-size:4rem;fill:var(--white);filter:drop-shadow(0 0 1rem var(--text-color-secondary));opacity:70%}.current-image-display-placeholder{background-color:var(--background-color-secondary);display:grid;display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:.5rem}.current-image-display-placeholder svg{width:10rem;height:10rem;color:var(--svg-color)}.image-gallery-area .image-gallery-popup-btn{position:absolute;top:50%;right:1rem;border-radius:.5rem 0 0 .5rem;padding:0 .5rem;min-width:1rem;min-height:6rem;background-color:var(--btn-grey)}.image-gallery-area .image-gallery-popup-btn:hover{background-color:var(--btn-grey-hover)}.image-gallery-area .image-gallery-popup-btn:disabled{background-color:#2d2d37}.image-gallery-area .image-gallery-popup-btn:disabled:hover{background-color:#2d2d37}.image-gallery-area .image-gallery-popup-btn svg{width:20px;height:20px;color:var(--btn-svg-color)}.image-gallery-popup{background-color:var(--tab-color);padding:1rem;animation:slideOut .3s ease-out;display:flex;flex-direction:column;row-gap:1rem;border-radius:.5rem;border-left-width:.2rem;min-width:300px;border-color:var(--gallery-resizeable-color)}.image-gallery-header{display:flex;align-items:center}.image-gallery-header h1{font-weight:700}.image-gallery-close-btn{background-color:var(--btn-load-more)!important}.image-gallery-close-btn:hover{background-color:var(--btn-load-more-hover)!important}.image-gallery-container{display:flex;flex-direction:column;gap:1rem;max-height:calc(100vh - 13rem);overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.image-gallery-container::-webkit-scrollbar{display:none}.masonry-grid{display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:.5rem;width:auto}.masonry-grid_column{padding-left:.5rem;background-clip:padding-box}.masonry-grid_column>.hoverable-image{background:var(--tab-color);margin-bottom:.5rem}.image-gallery-load-more-btn{background-color:var(--btn-load-more)!important;font-size:.85rem!important;font-family:Inter}.image-gallery-load-more-btn:disabled:hover{background-color:var(--btn-load-more)!important}.image-gallery-load-more-btn:hover{background-color:var(--btn-load-more-hover)!important}.image-gallery-container-placeholder{display:flex;background-color:var(--background-color-secondary);border-radius:.5rem;place-items:center;padding:2rem 0}.image-gallery-container-placeholder p{color:var(--subtext-color-bright);font-family:Inter}.image-gallery-container-placeholder svg{width:5rem;height:5rem;color:var(--svg-color)}.hoverable-image{display:flex;justify-content:center;transition:transform .2s ease-out}.hoverable-image:hover{cursor:pointer;border-radius:.5rem;z-index:2}.hoverable-image .hoverable-image-image{width:100%;height:100%;object-fit:cover;max-width:100%;max-height:100%}.hoverable-image .hoverable-image-content{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;align-items:center;justify-content:center}.hoverable-image .hoverable-image-content .hoverable-image-check{fill:var(--status-good-color)}.hoverable-image .hoverable-image-icons{position:absolute;bottom:-2rem;display:grid;width:min-content;grid-template-columns:repeat(2,max-content);border-radius:.4rem;background-color:var(--background-color-secondary);padding:.2rem;gap:.2rem;grid-auto-rows:max-content}.hoverable-image .hoverable-image-icons button{width:12px;height:12px;border-radius:.2rem;padding:10px 0;flex-shrink:2}.hoverable-image .hoverable-image-icons button svg{width:12px;height:12px}.popover-content{background-color:var(--background-color-secondary)!important;border:none!important;border-top:0px;background-color:var(--tab-hover-color);border-radius:0 0 .4rem .4rem}.popover-arrow{background:var(--tab-hover-color)!important;box-shadow:none}.popover-options{background:var(--tab-panel-bg);border-radius:0 0 .4rem .4rem;border:2px solid var(--tab-hover-color);padding:.75rem 1rem;display:grid;grid-auto-rows:max-content;grid-row-gap:.5rem;justify-content:space-between}.popover-header{background:var(--tab-hover-color);border-radius:.4rem .4rem 0 0;font-weight:700;border:none;padding-left:1rem!important}.upscale-popover{width:23rem!important}.image-metadata-viewer{width:100%;border-radius:.5rem;padding:1rem;background-color:var(--metadata-bg-color);overflow:scroll;max-height:calc(100vh - 11.4rem);z-index:10}.image-json-viewer{border-radius:.5rem;margin:0 .5rem 1rem;padding:1rem;overflow-x:scroll;word-break:break-all;background-color:var(--metadata-json-bg-color)}.app-tabs{display:grid!important;grid-template-columns:min-content auto;column-gap:1rem}.app-tabs-list{display:grid;row-gap:.3rem;grid-auto-rows:max-content;color:var(--tab-list-text-inactive)}.app-tabs-list button{font-size:.85rem;padding:.5rem}.app-tabs-list button:hover{background-color:var(--tab-hover-color);border-radius:.3rem}.app-tabs-list button svg{width:26px;height:26px}.app-tabs-list button[aria-selected=true]{background-color:var(--tab-list-bg);color:var(--tab-list-text);font-weight:700;border-radius:.3rem;border:none}.app-tabs-panels .app-tabs-panel{padding:0}.text-to-image-workarea{display:grid;grid-template-columns:max-content auto;column-gap:1rem}.text-to-image-panel{display:grid;row-gap:1rem;grid-auto-rows:max-content;height:calc(100vh - 7rem);overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.text-to-image-panel::-webkit-scrollbar{display:none}.text-to-image-display{display:grid;grid-template-areas:"text-to-image-display";column-gap:.5rem}.text-to-image-display .current-image-display,.text-to-image-display .current-image-display-placeholder{grid-area:text-to-image-display;height:calc(100vh - 7rem)}.text-to-image-display .image-gallery-area{height:100%;z-index:2;place-self:end}.image-to-image-workarea{display:grid;grid-template-columns:max-content auto;column-gap:1rem}.image-to-image-panel{display:grid;row-gap:1rem;grid-auto-rows:max-content;width:22.5rem;height:calc(100vh - 7rem);overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.image-to-image-panel::-webkit-scrollbar{display:none}.image-to-image-display-area{display:grid;column-gap:.5rem}.image-to-image-display-area .image-gallery-area{z-index:2;height:100%}.image-to-image-strength-main-option{display:grid;grid-template-columns:none!important}.image-to-image-strength-main-option .number-input-entry{padding:0 1rem}.image-to-image-display{border-radius:.5rem;background-color:var(--background-color-secondary);display:grid;height:calc(100vh - 7rem)}.image-to-image-display .current-image-options{grid-auto-columns:max-content;justify-self:center;align-self:start}.image-to-image-single-preview{display:grid;column-gap:.5rem;padding:0 1rem;place-content:center}.image-to-image-dual-preview-container{display:grid;grid-template-areas:"img2img-preview"}.image-to-image-dual-preview{grid-area:img2img-preview;display:grid;grid-template-columns:1fr 1fr;column-gap:.5rem;padding:0 1rem;place-content:center}.image-to-image-dual-preview .current-image-preview img{height:calc(100vh - 15rem);max-height:calc(100vh - 15rem)}.img2img-metadata{grid-area:img2img-preview;z-index:3}.init-image-preview{display:grid;grid-template-areas:"init-image-content";justify-content:center;align-items:center;border-radius:.5rem}.init-image-preview .init-image-preview-header{grid-area:init-image-content;z-index:2;display:grid;grid-template-columns:auto max-content;height:max-content;align-items:center;align-self:start;padding:1rem;border-radius:.5rem}.init-image-preview .init-image-preview-header h1{padding:.2rem .6rem;border-radius:.4rem;background-color:var(--tab-hover-color);width:max-content;font-weight:700;font-size:.85rem}.init-image-preview .init-image-image{grid-area:init-image-content}.init-image-preview .init-image-image img{border-radius:.5rem;object-fit:contain;background-color:var(--img2img-img-bg-color);width:auto;height:calc(100vh - 15rem);max-height:calc(100vh - 15rem)}.image-to-image-upload-btn{display:grid;width:100%;height:calc(100vh - 7rem)}.image-to-image-upload-btn button{overflow:hidden;width:100%;height:100%;font-size:1.5rem;color:var(--text-color-secondary);background-color:var(--background-color-secondary)}.image-to-image-upload-btn button:hover{background-color:var(--img2img-img-bg-color)}.number-input{display:grid;grid-template-columns:max-content auto;column-gap:1rem;align-items:center}.number-input .number-input-label{color:var(--text-color-secondary);margin-right:0}.number-input .number-input-field{display:grid;grid-template-columns:auto max-content;column-gap:.5rem;align-items:center;background-color:var(--background-color-secondary);border:2px solid var(--border-color);border-radius:.2rem}.number-input .number-input-entry{border:none;font-weight:700;width:100%;padding-inline-end:0}.number-input .number-input-entry:focus{outline:none;border:2px solid var(--prompt-border-color);box-shadow:0 0 10px 0 var(--prompt-box-shadow-color)}.number-input .number-input-entry:disabled{opacity:.2}.number-input .number-input-stepper{display:grid;padding-right:.7rem}.number-input .number-input-stepper svg{width:12px;height:12px}.number-input .number-input-stepper .number-input-stepper-button{border:none}.input{display:grid;grid-template-columns:max-content auto;column-gap:1rem;align-items:center}.input .input-label{color:var(--text-color-secondary);margin-right:0}.input .input-entry{background-color:var(--background-color-secondary);border:2px solid var(--border-color);border-radius:.2rem;font-weight:700}.input .input-entry:focus{outline:none;border:2px solid var(--prompt-border-color);box-shadow:0 0 10px 0 var(--prompt-box-shadow-color)}.input .input-entry:disabled{opacity:.2}.input .input-entry[aria-invalid=true]{outline:none;border:2px solid var(--border-color-invalid);box-shadow:0 0 10px 0 var(--box-shadow-color-invalid)}.iai-select{display:grid;grid-template-columns:repeat(2,max-content);column-gap:1rem;align-items:center;width:max-content}.iai-select .iai-select-label{color:var(--text-color-secondary);margin-right:0}.iai-select .iai-select-picker{border:2px solid var(--border-color);background-color:var(--background-color-secondary);font-weight:700}.iai-select .iai-select-picker:focus{outline:none;border:2px solid var(--prompt-border-color);box-shadow:0 0 10px 0 var(--prompt-box-shadow-color)}.iai-select .iai-select-option{background-color:var(--background-color-secondary)}.chakra-switch span,.switch-button span{background-color:var(--switch-bg-color)}.chakra-switch span span,.switch-button span span{background-color:var(--white)}.chakra-switch span[data-checked],.switch-button span[data-checked]{background:var(--switch-bg-active-color)}.chakra-switch span[data-checked] span,.switch-button span[data-checked] span{background-color:var(--white)}.work-in-progress{display:grid;width:100%;height:calc(100vh - 7rem);grid-auto-rows:max-content;background-color:var(--background-color-secondary);border-radius:.4rem;place-content:center;place-items:center;row-gap:1rem}.work-in-progress h1{font-size:2rem;font-weight:700}.work-in-progress p{text-align:center;max-width:50rem;color:var(--subtext-color-bright)}.guide-popover-arrow{background-color:var(--tab-panel-bg)!important;box-shadow:none!important}.guide-popover-content{background-color:var(--background-color-secondary)!important;border:none!important}.guide-popover-guide-content{background:var(--tab-panel-bg);border:2px solid var(--tab-hover-color);border-radius:.4rem;padding:.75rem 1rem;display:grid;grid-template-rows:repeat(auto-fill,1fr);grid-row-gap:.5rem;justify-content:space-between}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{-ms-overflow-style:none;scrollbar-width:none;background-color:var(--root-bg-color)}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}#root{background-color:var(--root-bg-color);color:var(--text-color);font-family:Inter,Arial,Helvetica,sans-serif} diff --git a/frontend/dist/index.html b/frontend/dist/index.html index a8411224a4..b85633a206 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -5,9 +5,9 @@ InvokeAI - A Stable Diffusion Toolkit - - - + + + diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 6b96a2d3a6..d8a8dcca62 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -5,6 +5,7 @@ import eslint from 'vite-plugin-eslint'; // https://vitejs.dev/config/ export default defineConfig(({ mode }) => { const common = { + base: '', plugins: [react(), eslint()], server: { // Proxy HTTP requests to the flask server