InvokeAI/invokeai/frontend/dist/assets/index.527e6198.js

600 lines
1.5 MiB
JavaScript
Raw Normal View History

2023-02-07 10:16:57 +00:00
var sX=Object.defineProperty;var lX=(e,t,n)=>t in e?sX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Et=(e,t,n)=>(lX(e,typeof t!="symbol"?t+"":t,n),n);function $Xe(){import("data:text/javascript,")}function gD(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function E7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S={exports:{}},_t={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Zm=Symbol.for("react.element"),uX=Symbol.for("react.portal"),cX=Symbol.for("react.fragment"),dX=Symbol.for("react.strict_mode"),fX=Symbol.for("react.profiler"),hX=Symbol.for("react.provider"),pX=Symbol.for("react.context"),gX=Symbol.for("react.forward_ref"),mX=Symbol.for("react.suspense"),vX=Symbol.for("react.memo"),yX=Symbol.for("react.lazy"),PP=Symbol.iterator;function bX(e){return e===null||typeof e!="object"?null:(e=PP&&e[PP]||e["@@iterator"],typeof e=="function"?e:null)}var mD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vD=Object.assign,yD={};function kh(e,t,n){this.props=e,this.context=t,this.refs=yD,this.updater=n||mD}kh.prototype.isReactComponent={};kh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bD(){}bD.prototype=kh.prototype;function P7(e,t,n){this.props=e,this.context=t,this.refs=yD,this.updater=n||mD}var T7=P7.prototype=new bD;T7.constructor=P7;vD(T7,kh.prototype);T7.isPureReactComponent=!0;var TP=Array.isArray,SD=Object.prototype.hasOwnProperty,L7={current:null},xD={key:!0,ref:!0,__self:!0,__source:!0};function wD(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)SD.call(t,r)&&!xD.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Zm,type:e,key:o,ref:a,props:i,_owner:L7.current}}function SX(e,t){return{$$typeof:Zm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function A7(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zm}function xX(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var LP=/\/+/g;function Q5(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xX(""+e.key):t.toString(36)}function n2(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Zm:case uX:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Q5(a,0):r,TP(i)?(n="",e!=null&&(n=e.replace(LP,"$&/")+"/"),n2(i,t,n,"",function(u){return u})):i!=null&&(A7(i)&&(i=SX(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(LP,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",TP(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Q5(o,s);a+=n2(o,t,n,l,i)}else if(l=bX(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Q5(o,s++),a+=n2(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function D0(e,t,n){if(e==null)return e;var r=[],i=0;return n2(e,r,"","",function(o){return t.call(n,o,i++)}),r}function wX(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gi={current:null},r2={transition:null},CX={ReactCurrentDispatcher:gi,ReactCurrentBatchConfig:r2,ReactCurrentOwner:L7};_t.Children={map:D0,forEach:function(e,t,n){D0(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D0(e,function(){t++}),t},toArray:function(e){return D0(e,function(t){return t})||[]},only:function(e){if(!A7(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};_t.Component=kh;_t.Fragment=cX;_t.Profiler=fX;_t
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _X=S.exports,kX=Symbol.for("react.element"),EX=Symbol.for("react.fragment"),PX=Object.prototype.hasOwnProperty,TX=_X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,LX={key:!0,ref:!0,__self:!0,__source:!0};function CD(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)PX.call(t,r)&&!LX.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:kX,type:e,key:o,ref:a,props:i,_owner:TX.current}}Sb.Fragment=EX;Sb.jsx=CD;Sb.jsxs=CD;(function(e){e.exports=Sb})(bb);const Ct=bb.exports.Fragment,m=bb.exports.jsx,D=bb.exports.jsxs;var O7=S.exports.createContext({});O7.displayName="ColorModeContext";function Qm(){const e=S.exports.useContext(O7);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var N0={light:"chakra-ui-light",dark:"chakra-ui-dark"};function AX(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?N0.dark:N0.light),document.body.classList.remove(r?N0.light:N0.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var OX="chakra-ui-color-mode";function MX(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch(r){}return n||t},set(t){try{localStorage.setItem(e,t)}catch(n){}}}}var IX=MX(OX),AP=()=>{};function OP(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function _D(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=IX}=e,s=i==="dark"?"dark":"light",[l,u]=S.exports.useState(()=>OP(a,s)),[c,f]=S.exports.useState(()=>OP(a)),{getSystemTheme:p,setClassName:g,setDataset:v,addListener:y}=S.exports.useMemo(()=>AX({preventTransition:o}),[o]),C=i==="system"&&!l?c:l,w=S.exports.useCallback(P=>{const T=P==="system"?p():P;u(T),g(T==="dark"),v(T),a.set(T)},[a,p,g,v]);ea(()=>{i==="system"&&f(p())},[]),S.exports.useEffect(()=>{const P=a.get();if(P){w(P);return}if(i==="system"){w("system");return}w(s)},[a,s,i,w]);const x=S.exports.useCallback(()=>{w(C==="dark"?"light":"dark")},[C,w]);S.exports.useEffect(()=>{if(!!r)return y(w)},[r,y,w]);const k=S.exports.useMemo(()=>({colorMode:t!=null?t:C,toggleColorMode:t?AP:x,setColorMode:t?AP:w,forced:t!==void 0}),[C,x,w,t]);return m(O7.Provider,{value:k,children:n})}_D.displayName="ColorModeProvider";var dw={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",p="[object Error]",g="[object Function]",v="[object GeneratorFunction]",y="[object Map]",C="[object Number]",w="[object Null]",x="[object Object]",k="[object Proxy]",P="[object RegExp]",T="[object Set]",A="[object String]",O="[object Undefined]",M="[object WeakMap]",R="[object ArrayBuffer]",$="[object DataView]",V="[object Float32Array]",Y="[object Float64Array]",z="[object Int8Array]",I="[object Int16Array]",N="[object Int32Array]",H="[object Uint8Array]",W="[o
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kr=typeof Symbol=="function"&&Symbol.for,N7=kr?Symbol.for("react.element"):60103,B7=kr?Symbol.for("react.portal"):60106,Eb=kr?Symbol.for("react.fragment"):60107,Pb=kr?Symbol.for("react.strict_mode"):60108,Tb=kr?Symbol.for("react.profiler"):60114,Lb=kr?Symbol.for("react.provider"):60109,Ab=kr?Symbol.for("react.context"):60110,F7=kr?Symbol.for("react.async_mode"):60111,Ob=kr?Symbol.for("react.concurrent_mode"):60111,Mb=kr?Symbol.for("react.forward_ref"):60112,Ib=kr?Symbol.for("react.suspense"):60113,_Q=kr?Symbol.for("react.suspense_list"):60120,Rb=kr?Symbol.for("react.memo"):60115,$b=kr?Symbol.for("react.lazy"):60116,kQ=kr?Symbol.for("react.block"):60121,EQ=kr?Symbol.for("react.fundamental"):60117,PQ=kr?Symbol.for("react.responder"):60118,TQ=kr?Symbol.for("react.scope"):60119;function Zi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N7:switch(e=e.type,e){case F7:case Ob:case Eb:case Tb:case Pb:case Ib:return e;default:switch(e=e&&e.$$typeof,e){case Ab:case Mb:case $b:case Rb:case Lb:return e;default:return t}}case B7:return t}}}function UD(e){return Zi(e)===Ob}Qt.AsyncMode=F7;Qt.ConcurrentMode=Ob;Qt.ContextConsumer=Ab;Qt.ContextProvider=Lb;Qt.Element=N7;Qt.ForwardRef=Mb;Qt.Fragment=Eb;Qt.Lazy=$b;Qt.Memo=Rb;Qt.Portal=B7;Qt.Profiler=Tb;Qt.StrictMode=Pb;Qt.Suspense=Ib;Qt.isAsyncMode=function(e){return UD(e)||Zi(e)===F7};Qt.isConcurrentMode=UD;Qt.isContextConsumer=function(e){return Zi(e)===Ab};Qt.isContextProvider=function(e){return Zi(e)===Lb};Qt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N7};Qt.isForwardRef=function(e){return Zi(e)===Mb};Qt.isFragment=function(e){return Zi(e)===Eb};Qt.isLazy=function(e){return Zi(e)===$b};Qt.isMemo=function(e){return Zi(e)===Rb};Qt.isPortal=function(e){return Zi(e)===B7};Qt.isProfiler=function(e){return Zi(e)===Tb};Qt.isStrictMode=function(e){return Zi(e)===Pb};Qt.isSuspense=function(e){return Zi(e)===Ib};Qt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Eb||e===Ob||e===Tb||e===Pb||e===Ib||e===_Q||typeof e=="object"&&e!==null&&(e.$$typeof===$b||e.$$typeof===Rb||e.$$typeof===Lb||e.$$typeof===Ab||e.$$typeof===Mb||e.$$typeof===EQ||e.$$typeof===PQ||e.$$typeof===TQ||e.$$typeof===kQ)};Qt.typeOf=Zi;(function(e){e.exports=Qt})(HD);var WD=HD.exports,LQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},AQ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},GD={};GD[WD.ForwardRef]=LQ;GD[WD.Memo]=AQ;var OQ=!0;function MQ(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var YD=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||OQ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},KD=function(t,n,r){YD(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function IQ(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var RQ={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWid
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function oee(e){const t=sN().toHexString();return!e||nee(e)?t:e.string&&e.colors?see(e.string,e.colors):e.string&&!e.colors?aee(e.string):e.colors&&!e.string?lee(e.colors):t}function aee(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function see(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function lee(e){return e[Math.floor(Math.random()*e.length)]}function it(e,t){return n=>n.colorMode==="dark"?t:e}function V7(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function uee(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function dN(e){return uee(e)&&e.reference?e.reference:String(e)}var Bb=(e,...t)=>t.map(dN).join(` ${e} `).replace(/calc/g,""),nT=(...e)=>`calc(${Bb("+",...e)})`,rT=(...e)=>`calc(${Bb("-",...e)})`,_w=(...e)=>`calc(${Bb("*",...e)})`,iT=(...e)=>`calc(${Bb("/",...e)})`,oT=e=>{const t=dN(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:_w(t,-1)},Ls=Object.assign(e=>({add:(...t)=>Ls(nT(e,...t)),subtract:(...t)=>Ls(rT(e,...t)),multiply:(...t)=>Ls(_w(e,...t)),divide:(...t)=>Ls(iT(e,...t)),negate:()=>Ls(oT(e)),toString:()=>e.toString()}),{add:nT,subtract:rT,multiply:_w,divide:iT,negate:oT});function cee(e){return!Number.isInteger(parseFloat(e.toString()))}function dee(e,t="-"){return e.replace(/\s+/g,t)}function fN(e){const t=dee(e.toString());return t.includes("\\.")?e:cee(e)?t.replace(".","\\."):e}function fee(e,t=""){return[t,fN(e)].filter(Boolean).join("-")}function hee(e,t){return`var(${fN(e)}${t?`, ${t}`:""})`}function pee(e,t=""){return`--${fee(e,t)}`}function pr(e,t){const n=pee(e,t==null?void 0:t.prefix);return{variable:n,reference:hee(n,gee(t==null?void 0:t.fallback))}}function gee(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{definePartsStyle:mee,defineMultiStyleConfig:vee}=Tn(hJ.keys),yee={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},bee={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},See={pt:"2",px:"4",pb:"5"},xee={fontSize:"1.25em"},wee=mee({container:yee,button:bee,panel:See,icon:xee}),Cee=vee({baseStyle:wee}),{definePartsStyle:t1,defineMultiStyleConfig:_ee}=Tn(pJ.keys),Wi=on("alert-fg"),Ds=on("alert-bg"),kee=t1({container:{bg:Ds.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Wi.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Wi.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function H7(e){const{theme:t,colorScheme:n}=e,r=nh(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var Eee=t1(e=>{const{colorScheme:t}=e,n=H7(e);return{container:{[Wi.variable]:`colors.${t}.500`,[Ds.variable]:n.light,_dark:{[Wi.variable]:`colors.${t}.200`,[Ds.variable]:n.dark}}}}),Pee=t1(e=>{const{colorScheme:t}=e,n=H7(e);return{container:{[Wi.variable]:`colors.${t}.500`,[Ds.variable]:n.light,_dark:{[Wi.variable]:`colors.${t}.200`,[Ds.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Wi.reference}}}),Tee=t1(e=>{const{colorScheme:t}=e,n=H7(e);return{container:{[Wi.variable]:`colors.${t}.500`,[Ds.variable]:n.light,_dark:{[Wi.variable]:`colors.${t}.200`,[Ds.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Wi.reference}}}),Lee=t1(e=>{const{colorScheme:t}=e;return{container:{[Wi.variable]:"colors.white",[Ds.variable]:`colors.${t}.500`,_dark:{[Wi.variable]:"colors.gray.900",[Ds.variable]:`colors.${t}.200`},color:Wi.reference}}}),Aee={subtle:Eee,"left-accent":Pee,"top-accent":Tee,solid:Lee},Oee=_ee({baseStyle:kee,variants:Aee,defaultProps:{variant:"subtle",colorScheme:"blue"}}),hN={px:"1px",.5:
to right,
transparent 0%,
${ui(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Ere={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Pre=e=>({bg:it("gray.100","whiteAlpha.300")(e)}),Tre=e=>({transitionProperty:"common",transitionDuration:"slow",...kre(e)}),Lre=ig(e=>({label:Ere,filledTrack:Tre(e),track:Pre(e)})),Are={xs:ig({track:{h:"1"}}),sm:ig({track:{h:"2"}}),md:ig({track:{h:"3"}}),lg:ig({track:{h:"4"}})},Ore=_re({sizes:Are,baseStyle:Lre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Mre,definePartsStyle:u2}=Tn(LJ.keys),Ire=e=>{var t;const n=(t=fi(q2.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Rre=u2(e=>{var t,n,r,i;return{label:(n=(t=q2).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=q2).baseStyle)==null?void 0:i.call(r,e).container,control:Ire(e)}}),$re={md:u2({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:u2({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:u2({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Dre=Mre({baseStyle:Rre,sizes:$re,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Nre,definePartsStyle:Bre}=Tn(AJ.keys),U0=on("select-bg"),cT,Fre={...(cT=jt.baseStyle)==null?void 0:cT.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:U0.reference,[U0.variable]:"colors.white",_dark:{[U0.variable]:"colors.gray.700"},"> option, > optgroup":{bg:U0.reference}},zre={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},jre=Bre({field:Fre,icon:zre}),W0={paddingInlineEnd:"8"},dT,fT,hT,pT,gT,mT,vT,yT,Vre={lg:{...(dT=jt.sizes)==null?void 0:dT.lg,field:{...(fT=jt.sizes)==null?void 0:fT.lg.field,...W0}},md:{...(hT=jt.sizes)==null?void 0:hT.md,field:{...(pT=jt.sizes)==null?void 0:pT.md.field,...W0}},sm:{...(gT=jt.sizes)==null?void 0:gT.sm,field:{...(mT=jt.sizes)==null?void 0:mT.sm.field,...W0}},xs:{...(vT=jt.sizes)==null?void 0:vT.xs,field:{...(yT=jt.sizes)==null?void 0:yT.xs.field,...W0},icon:{insetEnd:"1"}}},Hre=Nre({baseStyle:jre,sizes:Vre,variants:jt.variants,defaultProps:jt.defaultProps}),fS=on("skeleton-start-color"),hS=on("skeleton-end-color"),Ure={[fS.variable]:"colors.gray.100",[hS.variable]:"colors.gray.400",_dark:{[fS.variable]:"colors.gray.800",[hS.variable]:"colors.gray.600"},background:fS.reference,borderColor:hS.reference,opacity:.7,borderRadius:"sm"},Wre={baseStyle:Ure},pS=on("skip-link-bg"),Gre={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[pS.variable]:"colors.white",_dark:{[pS.variable]:"colors.gray.700"},bg:pS.reference}},Yre={baseStyle:Gre},{defineMultiStyleConfig:Kre,definePartsStyle:Fb}=Tn(OJ.keys),am=on("slider-thumb-size"),sm=on("slider-track-size"),Al=on("slider-bg"),qre=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...V7({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Xre=e=>({...V7({orientation:e.orientation,horizontal:{h:sm.reference},vertical:{w:sm.reference}}),overflow:"hidden",borderRadius:"sm",[Al.variable]:"colors.gray.200",_dark:{[Al.variable]:"colors.whiteAlpha.200"},_disabled:{[Al.variable]:"colors.gray.300",_dark:{[Al.variable]:"colors.whiteAlpha.300"}},bg:Al.reference}),Zre=e=>{const{orientation:t}=e;return{...V7({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:am.reference,h:am.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},Qre
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(u)}},[t]),m(Fce,{isPresent:t,childRef:r,sizeRef:i,children:S.exports.cloneElement(e,{ref:r})})}const TS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Ub(jce),l=S.exports.useId(),u=S.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return S.exports.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),S.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=m(zce,{isPresent:n,children:e})),m(Th.Provider,{value:u,children:e})};function jce(){return new Map}const Zd=e=>e.key||"";function Vce(e,t){e.forEach(n=>{const r=Zd(n);t.set(r,n)})}function Hce(e){const t=[];return S.exports.Children.forEach(e,n=>{S.exports.isValidElement(n)&&t.push(n)}),t}const gu=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",CB(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=Bce();const l=S.exports.useContext(Y7).forceRender;l&&(s=l);const u=ZB(),c=Hce(e);let f=c;const p=new Set,g=S.exports.useRef(f),v=S.exports.useRef(new Map).current,y=S.exports.useRef(!0);if(Q2(()=>{y.current=!1,Vce(c,v),g.current=f}),n9(()=>{y.current=!0,v.clear(),p.clear()}),y.current)return m(Ct,{children:f.map(k=>m(TS,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:k},Zd(k)))});f=[...f];const C=g.current.map(Zd),w=c.map(Zd),x=C.length;for(let k=0;k<x;k++){const P=C[k];w.indexOf(P)===-1&&p.add(P)}return a==="wait"&&p.size&&(f=[]),p.forEach(k=>{if(w.indexOf(k)!==-1)return;const P=v.get(k);if(!P)return;const T=C.indexOf(k),A=()=>{v.delete(k),p.delete(k);const O=g.current.findIndex(M=>M.key===k);if(g.current.splice(O,1),!p.size){if(g.current=c,u.current===!1)return;s(),r&&r()}};f.splice(T,0,m(TS,{isPresent:!1,onExitComplete:A,custom:t,presenceAffectsLayout:o,mode:a,children:P},Zd(P)))}),f=f.map(k=>{const P=k.key;return p.has(P)?k:m(TS,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:k},Zd(k))}),wB!=="production"&&a==="wait"&&f.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),m(Ct,{children:p.size?f:f.map(k=>S.exports.cloneElement(k))})};var Da=function(){return Da=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Da.apply(this,arguments)};function QB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ah(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Oh(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[
`})}function hde(e){Zb({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function rf(e){const{isOpen:t,isDisabled:n}=y9(),{reduceMotion:r}=b9(),i=s1("chakra-accordion__icon",e.className),o=Qb(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return m(Qi,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:m("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}rf.displayName="AccordionIcon";var of=pe(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=ude(t),l={...Qb().container,overflowAnchor:"none"},u=S.exports.useMemo(()=>a,[a]);return X.createElement(rde,{value:u},X.createElement(de.div,{ref:n,...o,className:s1("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});of.displayName="AccordionItem";var af=pe(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=b9(),{getPanelProps:s,isOpen:l}=y9(),u=s(o,n),c=s1("chakra-accordion__panel",r),f=Qb();a||delete u.hidden;const p=X.createElement(de.div,{...u,__css:f.panel,className:c});return a?p:m(JB,{in:l,...i,children:p})});af.displayName="AccordionPanel";var S9=pe(function({children:t,reduceMotion:n,...r},i){const o=Br("Accordion",r),a=Ht(r),{htmlProps:s,descendants:l,...u}=sde(a),c=S.exports.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return X.createElement(ide,{value:l},X.createElement(lde,{value:c},X.createElement(nde,{value:o},X.createElement(de.div,{ref:i,...s,className:s1("chakra-accordion",r.className),__css:o.root},t))))});S9.displayName="Accordion";var pde=(...e)=>e.filter(Boolean).join(" "),gde=pu({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),l1=pe((e,t)=>{const n=mi("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=Ht(e),u=pde("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${gde} ${o} linear infinite`,...n};return X.createElement(de.div,{ref:t,__css:c,className:u,...l},r&&X.createElement(de.span,{srOnly:!0},r))});l1.displayName="Spinner";var Jb=(...e)=>e.filter(Boolean).join(" ");function mde(e){return m(Qi,{viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",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"})})}function vde(e){return m(Qi,{viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",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"})})}function BL(e){return m(Qi,{viewBox:"0 0 24 24",...e,children:m("path",{fill:"currentColor",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"})})}var[yde,bde]=Yt({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Sde,x9]=Yt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),rF={info:{icon:vde,colorScheme:"blue"},warning:{icon:BL,colorScheme:"orange"},success:{icon:mde,colorScheme:"green"},error:{icon:BL,colorScheme:"red"},loading:{icon:l1,colorScheme:"blue"}};function xde(e){return rF[e].colorScheme}function wde(e){return rF[e].icon}var iF=pe(function(t,n){var u;const{status:r="info",addRole:i=!0,...o}=Ht(t),a=(u=t.colorScheme)!=null?u:xde(r),s=Br("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relati
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root {
--chakra-vh: 100dvh;
}
}
`,ife=()=>m(Db,{styles:pF}),ofe=()=>m(Db,{styles:`
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
font-feature-settings: 'kern';
}
*,
*::before,
*::after {
border-width: 0;
border-style: solid;
box-sizing: border-box;
}
main {
display: block;
}
hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
b,
strong {
font-weight: bold;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img {
border-style: none;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
fieldset {
padding: 0.35em 0.75em 0.625em;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
input[type="number"] {
-moz-appearance: textfield;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
details {
display: block;
}
summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
body,
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
button {
background: transparent;
padding: 0;
}
fieldset {
margin: 0;
padding: 0;
}
ol,
ul {
margin: 0;
padding: 0;
}
textarea {
resize: vertical;
}
button,
[role="button"] {
cursor: pointer;
}
button::-moz-focus-inner {
border: 0 !important;
}
table {
border-collapse: collapse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
button,
input,
optgroup,
select,
textarea {
padding: 0;
line-height: inherit;
color: inherit;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
}
img,
video {
max-width: 100%;
height: auto;
}
[data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
outline: none;
box-shadow: none;
}
select::-ms-expand {
display: none;
}
${pF}
`});function Cc(e,t,n,r){const i=Fn(n);return S.exports.useEffect(()=>{const o=typeof e=="function"?e():e!=null?e:document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e!=null?e:document;o==null||o.removeEventListener(t,i,r)}}function afe(e){return"current"in e}var gF=()=>typeof window<"u";function sfe(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var lfe=e=>gF()&&e.test(navigator.vendor),ufe=e=>gF()&&e.test(sfe()),cfe=()=>ufe(/mac|iphone|ipad|ipod/i),dfe=()=>cfe()&&lfe(/apple/i);function ffe(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var a;var o;return(a=(o=t.current)==null?void 0:o.ownerDocument)!=null?a:document};Cc(i,"pointerdown",o=>{if(!dfe()||!r)return;const a=o.target,l=(n!=null?n:[t]).some(u=>{const c=afe(u)?u.current:u;return(c==null?void 0:c.contains(a))||c===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var hfe=rJ?S.exports.useLayoutEffect:S.exports.useEffect;function GL(e,t=[]){const n=S.exports.useRef(e);return hfe(()=>{n.current=e}),S.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function pfe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function gfe(e,t){const n=S.exports.useId();return S.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Mc(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=GL(n),a=GL(t),[s,l]=S.exports.useState(e.defaultIsOpen||!1),[u,c]=pfe(r,s),f=gfe(i,"disclosure"),p=S.exports.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),g=S.exports.useCallback(()=>{u||l(!0),o==null||o()},[u,o]),v=S.exports.useCallback(()=>{(c?p:g)()},[c,g,p]);return{isOpen:!!c,onOpen:g,onClose:p,onToggle:v,isControlled:u,getButtonProps:(y={})=>({...y,"aria-expanded":c,"aria-controls":f,onClick:iJ(y.onClick,v)}),getDisclosureProps:(y={})=>({...y,hidden:!c,id:f})}}function P9(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var T9=pe(function(t,n){const{htmlSize:r,...i}=t,o=Br("Input",i),a=Ht(i),s=w9(a),l=Jn("chakra-input",t.className);return X.createElement(de.input,{size:r,...s,__css:o.field,ref:n,className:l})});T9.displayName="Input";T9.id="Input";var[mfe,mF]=Yt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),vfe=pe(function(t,n){const r=Br("Input",t),{children:i,className:o,...a}=Ht(t),s=Jn("chakra-input__group",o),l={},u=t3(i),c=r.field;u.forEach(p=>{var g,v;!r||(c&&p.type.id==="InputLeftElement"&&(l.paddingStart=(g=c.height)!=null?g:c.h),c&&p.type.id==="InputRightElement"&&(l.paddingEnd=(v=c.height)!=null?v:c.h),p.type.id==="InputRightAddon"&&(l.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const f=u.map(p=>{var g,v;const y=P9({size:((g=p.props)==null?void 0:g.size)||t.size,variant:((v=p.props)==null?void 0:v.variant)||t.variant});return p.type.id!=="Input"?S.exports.cloneElement(p,y):S.exports.cloneElement(p,Object.assign(y,l,p.props))});return X.createElement(de.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},m(mfe,{value:r,children:f}))});vfe.displayName="InputGroup";var yfe={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},bfe=de("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),L9=pe(function(t,n){var s;const{placement:r="left",...i}=t,o=(s=yfe[r])!=null?s:{},a=mF();return m(bfe,{ref:n,...i,__css:{...a.addon,...o}})});L9.displayName="InputAddon";var vF=pe(function(t,n){return m(L9,{ref:n,placement:"left",...t,className:Jn("chakra-input__left-addon",t.className)})});vF.displayName="InputLeftAddon";vF.id="InputLeftAddon";var yF=pe(function(t,n){return m(L9,{ref:n,placement:"right",...t,className:Jn("chakra-input__right-addon",t.className)})});yF.displayName="InputRightAddon";yF.id="InputRightAddon";var Sfe=de("div"
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(B,U){var q=B.length;B.push(U);e:for(;0<q;){var re=q-1>>>1,le=B[re];if(0<i(le,U))B[re]=U,B[q]=le,q=re;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var U=B[0],q=B.pop();if(q!==U){B[0]=q;e:for(var re=0,le=B.length,he=le>>>1;re<he;){var se=2*(re+1)-1,Oe=B[se],be=se+1,De=B[be];if(0>i(Oe,q))be<le&&0>i(De,Oe)?(B[re]=De,B[be]=q,re=be):(B[re]=Oe,B[se]=q,re=se);else if(be<le&&0>i(De,q))B[re]=De,B[be]=q,re=be;else break e}}return U}function i(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,g=!1,v=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(B){for(var U=n(u);U!==null;){if(U.callback===null)r(u);else if(U.startTime<=B)r(u),U.sortIndex=U.expirationTime,t(l,U);else break;U=n(u)}}function P(B){if(y=!1,k(B),!v)if(n(l)!==null)v=!0,H(T);else{var U=n(u);U!==null&&W(P,U.startTime-B)}}function T(B,U){v=!1,y&&(y=!1,w(M),M=-1),g=!0;var q=p;try{for(k(U),f=n(l);f!==null&&(!(f.expirationTime>U)||B&&!V());){var re=f.callback;if(typeof re=="function"){f.callback=null,p=f.priorityLevel;var le=re(f.expirationTime<=U);U=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(l)&&r(l),k(U)}else r(l);f=n(l)}if(f!==null)var he=!0;else{var se=n(u);se!==null&&W(P,se.startTime-U),he=!1}return he}finally{f=null,p=q,g=!1}}var A=!1,O=null,M=-1,R=5,$=-1;function V(){return!(e.unstable_now()-$<R)}function Y(){if(O!==null){var B=e.unstable_now();$=B;var U=!0;try{U=O(!0,B)}finally{U?z():(A=!1,O=null)}}else A=!1}var z;if(typeof x=="function")z=function(){x(Y)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,N=I.port2;I.port1.onmessage=Y,z=function(){N.postMessage(null)}}else z=function(){C(Y,0)};function H(B){O=B,A||(A=!0,z())}function W(B,U){M=C(function(){B(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,H(T))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(B){switch(p){case 1:case 2:case 3:var U=3;break;default:U=p}var q=p;p=U;try{return B()}finally{p=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,U){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var q=p;p=B;try{return U()}finally{p=q}},e.unstable_scheduleCallback=function(B,U,q){var re=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?re+q:re):q=re,B){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=q+le,B={id:c++,callback:U,priorityLevel:B,startTime:q,expirationTime:le,sortIndex:-1},q>re?(B.sortIndex=q,t(u,B),n(l)===null&&B===n(u)&&(y?(w(M),M=-1):y=!0,W(P,q-re))):(B.sortIndex=le,t(l,B),v||g||(v=!0,H(T))),B},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(ZF);(function(e){e.exports=ZF})(Nf);/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var QF=S.exports,qi=Nf.exports;function Se(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var JF=new Set,vm={};function Gc(e,t){uh(e,t),uh(e+"Capture",t)}function uh(e,t){for(vm[e]=t,e=0;e<t.length;e++)JF.add(t[e])}var Fs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),a6=Object.prototype.hasOwnProperty,Ope=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sA={},lA={};function Mpe(e){return a6.call(lA,e)?!0:a6.call(sA,e)?!1:Ope.test(e)?lA[e]=!0:(sA[e]=!0,!1)}function Ipe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rpe(e,t,n,r){if(t===null||typeof t>"u"||Ipe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vi(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new vi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new vi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new vi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new vi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nr[e]=new vi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new vi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new vi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new vi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new vi(e,5,!1,e.toLowerCase(),null,!1,!1)});var F9=/[\-:]([a-z])/g;function z9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect
`+IS+e}var RS=!1;function $S(e,t){if(!e||RS)return"";RS=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{RS=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?og(e):""}function $pe(e){switch(e.tag){case 5:return og(e.type);case 16:return og("Lazy");case 13:return og("Suspense");case 19:return og("SuspenseList");case 0:case 2:case 15:return e=$S(e.type,!1),e;case 11:return e=$S(e.type.render,!1),e;case 1:return e=$S(e.type,!0),e;default:return""}}function c6(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case lf:return"Fragment";case sf:return"Portal";case s6:return"Profiler";case V9:return"StrictMode";case l6:return"Suspense";case u6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tz:return(e.displayName||"Context")+".Consumer";case ez:return(e._context.displayName||"Context")+".Provider";case H9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U9:return t=e.displayName||null,t!==null?t:c6(e.type)||"Memo";case Pl:t=e._payload,e=e._init;try{return c6(e(t))}catch(n){}}return null}function Dpe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return c6(t);case 8:return t===V9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function iu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Npe(e){var t=rz(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nv(e){e._valueTracker||(e._valueTracker=Npe(e))}function iz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function d6(e,t){var n=t.checked;return jn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function cA(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=iu(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oz(e,t){t=t.checked,t!=null&&j9(e,"checked",t,!1)}function f6(e,t){oz(e,t);var n=iu(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?h6(e,t.type,n):t.hasOwnProperty("defaultValue")&&h6(e,t.type,iu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dA(e,t,n){if(t.ha
`).replace(Yge,"")}function cv(e,t,n){if(t=RA(t),RA(e)!==t&&n)throw Error(Se(425))}function xy(){}var P6=null,T6=null;function L6(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var A6=typeof setTimeout=="function"?setTimeout:void 0,Kge=typeof clearTimeout=="function"?clearTimeout:void 0,$A=typeof Promise=="function"?Promise:void 0,qge=typeof queueMicrotask=="function"?queueMicrotask:typeof $A<"u"?function(e){return $A.resolve(null).then(e).catch(Xge)}:A6;function Xge(e){setTimeout(function(){throw e})}function KS(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),wm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);wm(t)}function Gl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function DA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var $h=Math.random().toString(36).slice(2),Na="__reactFiber$"+$h,Pm="__reactProps$"+$h,zs="__reactContainer$"+$h,O6="__reactEvents$"+$h,Zge="__reactListeners$"+$h,Qge="__reactHandles$"+$h;function pc(e){var t=e[Na];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zs]||n[Na]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=DA(e);e!==null;){if(n=e[Na])return n;e=DA(e)}return t}e=n,n=e.parentNode}return null}function p1(e){return e=e[Na]||e[zs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ff(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Se(33))}function d3(e){return e[Pm]||null}var M6=[],hf=-1;function yu(e){return{current:e}}function Pn(e){0>hf||(e.current=M6[hf],M6[hf]=null,hf--)}function gn(e,t){hf++,M6[hf]=e.current,e.current=t}var ou={},ni=yu(ou),Oi=yu(!1),Rc=ou;function ch(e,t){var n=e.type.contextTypes;if(!n)return ou;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mi(e){return e=e.childContextTypes,e!=null}function wy(){Pn(Oi),Pn(ni)}function NA(e,t,n){if(ni.current!==ou)throw Error(Se(168));gn(ni,t),gn(Oi,n)}function Yz(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Se(108,Dpe(e)||"Unknown",i));return jn({},n,r)}function Cy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ou,Rc=ni.current,gn(ni,e),gn(Oi,Oi.current),!0}function BA(e,t,n){var r=e.stateNode;if(!r)throw Error(Se(169));n?(e=Yz(e,t,Rc),r.__reactInternalMemoizedMergedChildContext=e,Pn(Oi),Pn(ni),gn(ni,e)):Pn(Oi),gn(Oi,n)}var Ts=null,f3=!1,qS=!1;function Kz(e){Ts===null?Ts=[e]:Ts.push(e)}function Jge(e){f3=!0,Kz(e)}function bu(){if(!qS&&Ts!==null){qS=!0;var e=0,t=Xt;try{var n=Ts;for(Xt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ts=null,f3=!1}catch(i){throw Ts!==null&&(Ts=Ts.slice(e+1)),bz(G9,bu),i}finally{Xt=t,qS=!1}}return null}var pf=[],gf=0,_y=null,ky=0,po=[],go=0,$c=null,Os=1,Ms="";function Ju(e,t){pf[gf++]=ky,pf[gf++]=_y,_y=e,ky=t}function qz(e,t,n){po[go++]=Os,po[go++]=Ms,po[go++]=$c,$c=e;var r=Os;e=Ms;var i=32-ia(r)-1;r&=~(1<<i),n+=1;var o=32-ia(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Os=1<<32-ia(t)+i|n<<i|r,Ms=o+e}else Os=1<<o|n<<i|r,Ms=e}function t8(e){e.return!==null&&(Ju(e,1),qz(e,1,0))}function n8(e){for(;e===_y;)_y=pf[--gf],pf[gf]=null,ky=pf[--gf],pf[gf]=null;for(;e===$c;)$c=po[--go],po[go]=null,Ms=po[--go],po[go]=null,Os=po[--go],po[go]=null}var Gi=null,Hi=null,In=!1,qo=null;function Xz(e,t){var n=bo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ex(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function B6(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lme=typeof WeakMap=="function"?WeakMap:Map;function _j(e,t,n){n=Is(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Iy||(Iy=!0,K6=r),B6(e,t)},n}function kj(e,t,n){n=Is(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){B6(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){B6(e,t),typeof r!="function"&&(Kl===null?Kl=new Set([this]):Kl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function KA(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lme;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=wme.bind(null,e,t,n),t.then(e,e))}function qA(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function XA(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Is(-1,1),t.tag=2,Yl(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ume=qs.ReactCurrentOwner,Ti=!1;function li(e,t,n,r){t.child=e===null?rj(t,null,n,r):fh(t,e.child,n,r)}function ZA(e,t,n,r,i){n=n.render;var o=t.ref;return Vf(t,i),r=h8(e,t,n,r,o,i),n=p8(),e!==null&&!Ti?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i)):(In&&n&&t8(t),t.flags|=1,li(e,t,r,i),t.child)}function QA(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!_8(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ej(e,t,o,r,i)):(e=k2(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_m,n(a,r)&&e.ref===t.ref)return Vs(e,t,i)}return t.flags|=1,e=Xl(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ej(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(_m(o,r)&&e.ref===t.ref)if(Ti=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Ti=!0);else return t.lanes=e.lanes,Vs(e,t,i)}return F6(e,t,n,r,i)}function Pj(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gn(yf,ji),ji|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gn(yf,ji),ji|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,gn(yf,ji),ji|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,gn(yf,ji),ji|=r;return li(e,t,i,n),t.child}function Tj(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function F6(e,t,n,r,i){var o=Mi(n)?Rc:ni.current;return o=ch(t,o),Vf(t,i),n=h8(e,t,n,r,o,i),r=p8(),e!==null&&!Ti?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i)):(In&&r&&t8(t),t.flags|=1,li(e,t,n,i),t.child)}function JA(e,t,n,r,i){if(Mi(n)){var o=!0;Cy(t)}else o=!1;if(Vf(t,i),t.stateNode===null)w2(e,t),tj(t,n,r),N6(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Po(u):(u=Mi(n)?Rc:ni.current,u=ch(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&UA(t,a,r,u),Tl=!1;var p=t.memoizedState;a.state=p,Ty(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Oi.current||Tl?(typeof c=="function"&&(D6(t,n,c,r),l=t.memoizedState),(s=Tl||HA(t,n,s,r,p,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.comp
.`.concat(K1e,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(E2,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(P2,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(E2," .").concat(E2,` {
right: 0 `).concat(r,`;
}
.`).concat(P2," .").concat(P2,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(q1e,": ").concat(s,`px;
}
`)},s0e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=S.exports.useMemo(function(){return i0e(i)},[i]);return m(o0e,{styles:a0e(o,!t,i,n?"":"!important")})},rC=!1;if(typeof window<"u")try{var Sv=Object.defineProperty({},"passive",{get:function(){return rC=!0,!0}});window.addEventListener("test",Sv,Sv),window.removeEventListener("test",Sv,Sv)}catch(e){rC=!1}var Fd=rC?{passive:!1}:!1,l0e=function(e){return e.tagName==="TEXTAREA"},DV=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!l0e(e)&&n[t]==="visible")},u0e=function(e){return DV(e,"overflowY")},c0e=function(e){return DV(e,"overflowX")},vO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=NV(e,n);if(r){var i=BV(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},d0e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},f0e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},NV=function(e,t){return e==="v"?u0e(t):c0e(t)},BV=function(e,t){return e==="v"?d0e(t):f0e(t)},h0e=function(e,t){return e==="h"&&t==="rtl"?-1:1},p0e=function(e,t,n,r,i){var o=h0e(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,c=a>0,f=0,p=0;do{var g=BV(e,s),v=g[0],y=g[1],C=g[2],w=y-C-o*v;(v||w)&&NV(e,s)&&(f+=w,p+=v),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(i&&f===0||!i&&a>f)||!c&&(i&&p===0||!i&&-a>p))&&(u=!0),u},xv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yO=function(e){return[e.deltaX,e.deltaY]},bO=function(e){return e&&"current"in e?e.current:e},g0e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},m0e=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},v0e=0,zd=[];function y0e(e){var t=S.exports.useRef([]),n=S.exports.useRef([0,0]),r=S.exports.useRef(),i=S.exports.useState(v0e++)[0],o=S.exports.useState(function(){return $V()})[0],a=S.exports.useRef(e);S.exports.useEffect(function(){a.current=e},[e]),S.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=qw([e.lockRef.current],(e.shards||[]).map(bO),!0).filter(Boolean);return y.forEach(function(C){return C.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.exports.useCallback(function(y,C){if("touches"in y&&y.touches.length===2)return!a.current.allowPinchZoom;var w=xv(y),x=n.current,k="deltaX"in y?y.deltaX:x[0]-w[0],P="deltaY"in y?y.deltaY:x[1]-w[1],T,A=y.target,O=Math.abs(k)>Math.abs(P)?"h":"v";if("touches"in y&&O==="h"&&A.type==="range")return!1;var M=vO(O,A);if(!M)return!0;if(M?T=O:(T=O==="v"?"h":"v",M=vO(O,A)),!M)return!1;if(!r.current&&"changedTouches"in y&&(k||P)&&(r.current=T),!T)return!0;var R=r.current||T;return p0e(R,C,y,R==="h"?k:P,!0)},[]),l=S.exports.useCallback(function(y){var C=y;if(!(!zd.length||zd[zd.length-1]!==o)){var w="deltaY"in C?yO(C):xv(C),x=t.current.filter(function(T){return T.name===C.type&&T.target===C.target&&g0e(T.delta,w)})[0];if(x&&x.should){C.cancelable&&C.preventDefault();return}if(!x){var k=(a.current.shards||[]).map(bO).filter(Boolean).filter(function(T){return T.contains(C.target)}),P=k.length>0?s(C,k[0]):!a.current.noIsolation;P&&C.cancelable&&C.preventDefault()}}},[]),u=S.exports.useCallback(function(y,C,w,x){var k={name:y,delta:C,target:w,should:x};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(P){return P!==k})},1)},[]),c=S.exports.useCallback(function(y){n.current=xv(y),r.current=void 0},[]),f=S.exports.useCallback(function(y){u(y.type,yO(y),y.target,s(y,e.lockRef.current))},[]),p=S.exports.useCallback(function(y){u(y.type,xv(y),y.target,s(y,e.lockRef.current))},[]);S.exports.useEffect(function(){return zd.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Fd),document.addEventListener("touchmove",l,Fd),document.addEventListener("touchstart",c,Fd),function(){zd=zd.filter(function(y){return y!==o}),document.removeEventListener("wheel",l,Fd),document.removeEventListener("touchmove",l,Fd),document.removeEventListener("touchstart",c,Fd)}},[]);var g=e.removeScrollBar,v=e.inert;return D(Ct,{children:[v?m(o,{styles:m0e(i)}):null,g?m(s0e,{gapMode:"margin"}):null]})}const b0e=Qme(RV,y0e);var FV=S.exports.forwardRef(function(e,t){return m(w3,{...Da({},e,{ref:t,sideCar:b0e})})});FV.classNames=w3.classNames;const zV=FV;var qc=(...e)=>e.filter(Boolean).join(" ");function ug(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var S0e=class{constructor(){Et(this,"modals");this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},iC=new S0e;function x0e(e,t){S.exports.useEffect(()=>(t&&iC.add(e),()=>{iC.remove(e)}),[t,e])}function w0e(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=S.exports.useRef(null),c=S.exports.useRef(null),[f,p,g]=_0e(r,"chakra-modal","chakra-modal--header","chakra-modal--body");C0e(u,t&&a),x0e(u,t);const v=S.exports.useRef(null),y=S.exports.useCallback(M=>{v.current=M.target},[]),C=S.exports.useCallback(M=>{M.key==="Escape"&&(M.stopPropagation(),o&&(n==null||n()),l==null||l())},[o,n,l]),[w,x]=S.exports.useState(!1),[k,P]=S.exports.useState(!1),T=S.exports.useCallback((M={},R=null)=>({role:"dialog",...M,ref:un(R,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":w?p:void 0,"aria-describedby":k?g:void 0,onClick:ug(M.onClick,$=>$.stopPropagation())}),[g,k,f,p,w]),A=S.exports.useCallback(M=>{M.stopPropagation(),v.cu
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var vh=S.exports;function B2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var F2e=typeof Object.is=="function"?Object.is:B2e,z2e=vh.useState,j2e=vh.useEffect,V2e=vh.useLayoutEffect,H2e=vh.useDebugValue;function U2e(e,t){var n=t(),r=z2e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return V2e(function(){i.value=n,i.getSnapshot=t,mx(i)&&o({inst:i})},[e,n,t]),j2e(function(){return mx(i)&&o({inst:i}),e(function(){mx(i)&&o({inst:i})})},[e]),H2e(n),n}function mx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!F2e(e,n)}catch(r){return!0}}function W2e(e,t){return t()}var G2e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?W2e:U2e;CH.useSyncExternalStore=vh.useSyncExternalStore!==void 0?vh.useSyncExternalStore:G2e;(function(e){e.exports=CH})(wH);var _H={exports:{}},kH={};/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var T3=S.exports,Y2e=wH.exports;function K2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var q2e=typeof Object.is=="function"?Object.is:K2e,X2e=Y2e.useSyncExternalStore,Z2e=T3.useRef,Q2e=T3.useEffect,J2e=T3.useMemo,eye=T3.useDebugValue;kH.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Z2e(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=J2e(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&a.hasValue){var v=a.value;if(i(v,g))return f=v}return f=g}if(v=f,q2e(c,g))return v;var y=r(g);return i!==void 0&&i(v,y)?v:(c=g,f=y)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=X2e(e,o[0],o[1]);return Q2e(function(){a.hasValue=!0,a.value=s},[s]),eye(s),s};(function(e){e.exports=kH})(_H);function tye(e){e()}let EH=tye;const nye=e=>EH=e,rye=()=>EH,uu=S.exports.createContext(null);function PH(){return S.exports.useContext(uu)}const iye=()=>{throw new Error("uSES not initialized!")};let TH=iye;const oye=e=>{TH=e},aye=(e,t)=>e===t;function sye(e=uu){const t=e===uu?PH:()=>S.exports.useContext(e);return function(r,i=aye){const{store:o,subscription:a,getServerState:s}=t(),l=TH(a.addNestedSub,o.getState,s||o.getState,r,i);return S.exports.useDebugValue(l),l}}const lye=sye();var uye={exports:{}},Jt={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var t_=Symbol.for("react.element"),n_=Symbol.for("react.portal"),L3=Symbol.for("react.fragment"),A3=Symbol.for("react.strict_mode"),O3=Symbol.for("react.profiler"),M3=Symbol.for("react.provider"),I3=Symbol.for("react.context"),cye=Symbol.for("react.server_context"),R3=Symbol.for("react.forward_ref"),$3=Symbol.for("react.suspense"),D3=Symbol.for("react.suspense_list"),N3=Symbol.for("react.memo"),B3=Symbol.for("react.lazy"),dye=Symbol.for("react.offscreen"),LH;LH=Symbol.for("react.module.reference");function Oo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case t_:switch(e=e.type,e){case L3:case O3:case A3:case $3:case D3:return e;default:switch(e=e&&e.$$typeof,e){case cye:case I3:case R3:case B3:case N3:case M3:return e;default:return t}}case n_:return t}}}Jt.ContextConsumer=I3;Jt.ContextProvider=M3;Jt.Element=t_;Jt.ForwardRef=R3;Jt.Fragment=L3;Jt.Lazy=B3;Jt.Memo=N3;Jt.Portal=n_;Jt.Profiler=O3;Jt.StrictMode=A3;Jt.Suspense=$3;Jt.SuspenseList=D3;Jt.isAsyncMode=function(){return!1};Jt.isConcurrentMode=function(){return!1};Jt.isContextConsumer=function(e){return Oo(e)===I3};Jt.isContextProvider=function(e){return Oo(e)===M3};Jt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===t_};Jt.isForwardRef=function(e){return Oo(e)===R3};Jt.isFragment=function(e){return Oo(e)===L3};Jt.isLazy=function(e){return Oo(e)===B3};Jt.isMemo=function(e){return Oo(e)===N3};Jt.isPortal=function(e){return Oo(e)===n_};Jt.isProfiler=function(e){return Oo(e)===O3};Jt.isStrictMode=function(e){return Oo(e)===A3};Jt.isSuspense=function(e){return Oo(e)===$3};Jt.isSuspenseList=function(e){return Oo(e)===D3};Jt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===L3||e===O3||e===A3||e===$3||e===D3||e===dye||typeof e=="object"&&e!==null&&(e.$$typeof===B3||e.$$typeof===N3||e.$$typeof===M3||e.$$typeof===I3||e.$$typeof===R3||e.$$typeof===LH||e.getModuleId!==void 0)};Jt.typeOf=Oo;(function(e){e.exports=Jt})(uye);function fye(){const e=rye();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const LO={notify(){},get:()=>[]};function hye(e,t){let n,r=LO;function i(f){return l(),r.subscribe(f)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=fye())}function u(){n&&(n(),n=void 0,r.clear(),r=LO)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const pye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gye=pye?S.exports.useLayoutEffect:S.exports.useEffect;function mye({store:e,context:t,children:n,serverState:r}){const i=S.exports.useMemo(()=>{const s=hye(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=S.exports.useMemo(()=>e.getState(),[e]);return gye(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),m((t||uu).Provider,{value:i,children:n})}function AH(e=uu){const t=e===uu?PH:()=>S.exports.useContext(e);return function(){const{store:r}=t();return r}}const vye=AH();function yye(e=uu){const t=e===uu?vye:AH(e);return function(){return t().dispatch}}const bye=yye();oye(_H.exports.useSyncExternalStoreWithSelector);nye(ls.exports.unstable_batchedUpdates);function A2(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A2=function(n){return typeof n}:A2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},A2(e)}function Sye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AO(e,t){for(var n=0;n<t
`;if(!(0,e.isString)(I)||I.length<1)throw new Error(`${W} Name (key) of reducer is required. ${B}`);if(!z||!z.length)return;const{duplicates:U,subsets:q}=(0,e.findDuplicatesAndSubsets)(z);if(U.length>1)throw new Error(`${W} Duplicated paths.
${JSON.stringify(U)}
${B}`);if(q.length>1)throw new Error(`${W} You are trying to persist an entire property and also some of its subset.
${JSON.stringify(q)}
${B}`)};e.singleTransformValidator=M;const R=function(z){if(!(0,e.isArray)(z))return;const I=(z==null?void 0:z.map(N=>N.deepPersistKey).filter(N=>N))||[];if(I.length){const N=I.filter((H,W)=>I.indexOf(H)!==W);if(N.length)throw new Error(`${t.PACKAGE_NAME}: found duplicated keys in transforms creators. You can createWhitelist or createBlacklist for a specific root reducer key only once. Duplicated keys among createWhitelist and createBlacklist transforms are not allowed.
Duplicates: ${JSON.stringify(N)}`)}};e.transformsValidator=R;const $=function({whitelist:z,blacklist:I}){if(z&&z.length&&I&&I.length)throw new Error(`${t.PACKAGE_NAME}: you should not define a whitelist and blacklist in parallel. It is allowed to use only one of these lists per config.`);if(z){const{duplicates:N,subsets:H}=(0,e.findDuplicatesAndSubsets)(z);(0,e.throwError)({duplicates:N,subsets:H},"whitelist")}if(I){const{duplicates:N,subsets:H}=(0,e.findDuplicatesAndSubsets)(I);(0,e.throwError)({duplicates:N,subsets:H},"blacklist")}};e.configValidator=$;const V=function({duplicates:z,subsets:I},N){if(z.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${N}.
${JSON.stringify(z)}`);if(I.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${N}. You must decide if you want to persist an entire path or its specific subset.
${JSON.stringify(I)}`)};e.throwError=V;const Y=function(z){return(0,e.isArray)(z)?z.filter(e.unique).reduce((I,N)=>{const H=N.split("."),W=H[0],B=H.slice(1).join(".")||void 0,U=I.filter(re=>Object.keys(re)[0]===W)[0],q=U?Object.values(U)[0]:void 0;return U||I.push({[W]:B?[B]:void 0}),U&&!q&&B&&(U[W]=[B]),U&&q&&B&&q.push(B),I},[]):[]};e.getRootKeysGroup=Y})(qH);(function(e){var t=Pi&&Pi.__rest||function(f,p){var g={};for(var v in f)Object.prototype.hasOwnProperty.call(f,v)&&p.indexOf(v)<0&&(g[v]=f[v]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,v=Object.getOwnPropertySymbols(f);y<v.length;y++)p.indexOf(v[y])<0&&Object.prototype.propertyIsEnumerable.call(f,v[y])&&(g[v[y]]=f[v[y]]);return g};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=qH,r=jc,i=g_,o=function(f,p,g={}){const v=g.whitelist||null,y=g.blacklist||null;function C(w){return!!(v&&v.indexOf(w)===-1||y&&y.indexOf(w)!==-1)}return{in:(w,x,k)=>!C(x)&&f?f(w,x,k):w,out:(w,x,k)=>!C(x)&&p?p(w,x,k):w,deepPersistKey:v&&v[0]}},a=(f,p,g,{debug:v,whitelist:y,blacklist:C,transforms:w})=>{if(y||C)throw new Error("State reconciler autoMergeDeep uses custom transforms instead of old whitelist or blacklist config properties. Please use createWhitelist or createBlacklist transforms.");(0,n.transformsValidator)(w);const x=(0,n.cloneDeep)(g);let k=f;if(k&&(0,n.isObjectLike)(k)){const P=(0,n.difference)(p,g);(0,n.isEmpty)(P)||(k=(0,n.mergeDeep)(f,P,{preserveUndefined:!0}),v&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(P)}`)),Object.keys(k).forEach(T=>{if(T!=="_persist"){if((0,n.isObjectLike)(x[T])){x[T]=(0,n.mergeDeep)(x[T],k[T]);return}x[T]=k[T]}})}return v&&k&&(0,n.isObjectLike)(k)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(k)}`),x};e.autoMergeDeep=a;const s=(f,p)=>((0,n.singleTransformValidator)(p,f,i.ConfigType.WHITELIST),o(g=>{if(!p||!p.length)return g;let v=null,y;return p.forEach(C=>{const w=C.split(".");y=(0,n.path)(g,w),typeof y>"u"&&(0,n.isIntegerString)(w[w.length-1])&&(y=r.PLACEHOLDER_UNDEFINED);const x=(0,n.assocPath)(w,y),k=(0,n.isArray)(x)?[]:{};v=(0,n.mergeDeep)(v||k,x,{preservePlaceholder:!0})}),v||g},g=>(0,n.preserveUndefined)(g,p,i.ConfigType.WHITELIST),{whitelist:[f]}));e.createWhitelist=s;const l=(f,p)=>((0,n.singleTransformValidator)(p,f,i.ConfigType.BLACKLIST),o(g=>{if(!p||!p.length)return;const v=(0,n.preserveUndefined)(g,p,i.ConfigType.BLACKLIST,!0);return p.map(C=>C.split(".")).reduce((C,w)=>(0,n.dissocPath)(C,w),v)},g=>(0,n.preserveUndefined)(g,p,i.ConfigType.BLACKLIST),{whitelist:[f]}));e.createBlacklist=l;const u=function(f,p){return p.map(g=>{const v=Object.keys(g)[0],y=g[v];return f===i.ConfigType.WHITELIST?(0,e.createWhitelist)(v,y):(0,e.createBlacklist)(v,y)})};e.getTransforms=u;const c=f=>{var{key:p,whitelist:g,blacklist:v,storage:y,transforms:C,rootReducer:w}=f,x=t(f,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:g,blacklist:v});const k=(0,n.getRootKeysGroup)(g),P=(0,n.getRootKeysGroup)(v),T=Object.keys(w(void 0,{type:""})),A=k.map(Y=>Object.keys(Y)[0]),O=P.map(Y=>Object.keys(Y)[0]),M=T.filter(Y=>A.indexOf(Y)===-1&&O.indexOf(Y)===-1),R=(0,e.getTransforms)(i.ConfigType.WHITELIST,k),$=(0,e.getTransforms)(i.ConfigType.BLACKLIST,P),V=(0,n.isArray)(g)?M.map(Y=>(0,e.createBlacklist)(Y)):[];return Object.assign(Object.assign({},x),{key:p,storage:y,transforms:[...R,...$,...V,...C||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=c})(KH);const zl=(e,t)=>Math.floor(e/t)*t,Va=(e,t)=>Math.round(e/t)*t;function Wbe(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var Gbe=Wbe,Ybe=/\s/;function Kbe(e){for(var t=e.length;t--&&Ybe.test(e.charAt(t)););return t}var qbe=Kbe,Xbe=qbe,Zbe=/^\s+/;function Qbe(e){return e&&e.slice(0,Xbe(e)+1).replace(Zbe,"")}var Jbe=Qbe;function e3e(e){var t=typeof
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j9e(e){return N9e(e)||B9e(e)||F9e(e)||z9e()}function $M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){Cu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var V9e={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},H9e=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ds(this,e),this.init(t,n)}return fs(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||V9e,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,DM(DM({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Ha=new H9e,du=function(){function e(){ds(this,e),this.observers={}}return fs(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(!!this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Wp(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function NM(e){return e==null?"":""+e}function U9e(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function $_(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function BM(e,t,n){var r=$_(e,t,Object),i=r.obj,o=r.k;i[o]=n}function W9e(e,t,n,r){var i=$_(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function Qy(e,t){var n=$_(e,t),r=n.obj,i=n.k;if(!!r)return r[i]}function FM(e,t,n){var r=Qy(e,n);return r!==void 0?r:Qy(t,n)}function sW(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):sW(e[r],t[r],n):e[r]=t[r]);return e}function Ud(e){return e.rep
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p_e(e,t){return c_e(e)||d_e(e,t)||f_e(e,t)||h_e()}function gI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gI(Object(n),!0).forEach(function(r){yW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var g_e=function(t,n){var r=S.exports.useRef();return S.exports.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function we(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=S.exports.useContext(l_e)||{},i=r.i18n,o=r.defaultNS,a=n||i||i_e();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new u_e),!a){IC("You will need to pass in an i18next instance by using initReactI18next");var s=function(R){return Array.isArray(R)?R[R.length-1]:R},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&IC("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=Mx(Mx(Mx({},n_e()),a.options.react),t),c=u.useSuspense,f=u.keyPrefix,p=e||o||a.options&&a.options.defaultNS;p=typeof p=="string"?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var g=(a.isInitialized||a.initializedStoreOnce)&&p.every(function(M){return X8e(M,a,u)});function v(){return a.getFixedT(null,u.nsMode==="fallback"?p:p[0],f)}var y=S.exports.useState(v),C=p_e(y,2),w=C[0],x=C[1],k=p.join(),P=g_e(k),T=S.exports.useRef(!0);S.exports.useEffect(function(){var M=u.bindI18n,R=u.bindI18nStore;T.current=!0,!g&&!c&&cI(a,p,function(){T.current&&x(v)}),g&&P&&P!==k&&T.current&&x(v);function $(){T.current&&x(v)}return M&&a&&a.on(M,$),R&&a&&a.store.on(R,$),function(){T.current=!1,M&&a&&M.split(" ").forEach(function(V){return a.off(V,$)}),R&&a&&R.split(" ").forEach(function(V){return a.store.off(V,$)})}},[a,k]);var A=S.exports.useRef(!0);S.exports.useEffect(function(){T.current&&!A.current&&x(v),A.current=!1},[a,f]);var O=[w,a,g];if(O.t=w,O.i18n=a,O.ready=g,g||!g&&!c)return O;throw new Promise(function(M){cI(a,p,function(){M()})})}ht.use(mW).use(dW).use(s_e).init({fallbackLng:"en",debug:!1,ns:["common","gallery","hotkeys","parameters","settings","modelmanager","toast","tooltip","unifiedcanvas"],backend:{loadPath:"/locales/{{ns}}/{{lng}}.json"},interpolation:{escapeValue:!1},returnNull:!1});const m_e={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgressType:"latents",shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:ht.isInitialized?ht.t("common:statusDisconnected"):"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:"",model_list:{},infill_methods:[],hasError:!1,wasErrorSeen:!0,isCancelable:!0,saveIntermediatesInterval:5,enableImageDebugging:!1,toastQueue:[],searchFolder:null,foundModels:null,openModel:null},SW=Qc({name:"system",initialState:m_e,reducers:{setShouldDisplayInProgressType:(e,t)=>{e.shouldDisplayInProgressType=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>({...e,...t.payload}),errorOccurred:e=>{e.hasError=!0,e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus=ht.t("common:statusError"),e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?ht.t("common:statusConnected"):ht.t("common:statusDisconnected")},addLogEntry:(e,t)=>{const{timestamp
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Yd&&o!==void 0,l=a!==Yd&&a!==void 0,u=this.padding(),c=o-u*2,f=a-u*2,p=0,g=this.wrap(),v=g!==WI,y=g!==QEe&&v,C=this.ellipsis();this.textArr=[],jx().font=this._getContextFont();for(var w=C?this._getTextWidth(zx):0,x=0,k=t.length;x<k;++x){var P=t[x],T=this._getTextWidth(P);if(s&&T>c)for(;P.length>0;){for(var A=0,O=P.length,M="",R=0;A<O;){var $=A+O>>>1,V=P.slice(0,$+1),Y=this._getTextWidth(V)+w;Y<=c?(A=$+1,M=V,R=Y):O=$}if(M){if(y){var z,I=P[M.length],N=I===zv||I===HI;N&&R<=c?z=M.length:z=Math.max(M.lastIndexOf(zv),M.lastIndexOf(HI))+1,z>0&&(A=z,M=M.slice(0,A),R=this._getTextWidth(M))}M=M.trimRight(),this._addTextLine(M),r=Math.max(r,R),p+=i;var H=this._shouldHandleEllipsis(p);if(H){this._tryToAddEllipsisToLastLine();break}if(P=P.slice(A),P=P.trimLeft(),P.length>0&&(T=this._getTextWidth(P),T<=c)){this._addTextLine(P),p+=i,r=Math.max(r,T);break}}else break}else this._addTextLine(P),p+=i,r=Math.max(r,T),this._shouldHandleEllipsis(p)&&x<k-1&&this._tryToAddEllipsisToLastLine();if(l&&p+i>f)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Yd&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==WI;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Yd&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+zx)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+zx)}}getStrokeScaleEnabled(){return!0}}Vn.prototype._fillFunc=tPe;Vn.prototype._strokeFunc=nPe;Vn.prototype.className=GEe;Vn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Hn(Vn);G.overWriteSetter(Vn,"width",j_());G.overWriteSetter(Vn,"height",j_());G.addGetterSetter(Vn,"fontFamily","Arial");G.addGetterSetter(Vn,"fontSize",12,Pe());G.addGetterSetter(Vn,"fontStyle",hG);G.addGetterSetter(Vn,"fontVariant",hG);G.addGetterSetter(Vn,"padding",0,Pe());G.addGetterSetter(Vn,"align",fG);G.addGetterSetter(Vn,"verticalAlign",YEe);G.addGetterSetter(Vn,"lineHeight",1,Pe());G.addGetterSetter(Vn,"wrap",ZEe);G.addGetterSetter(Vn,"ellipsis",!1,fa());G.addGetterSetter(Vn,"letterSpacing",0,Pe());G.addGetterSetter(Vn,"text","",Yh());G.addGetterSetter(Vn,"textDecoration","");var iPe="",gG="normal";function mG(e){e.fillText(this.partialText,0,0)}function vG(e){e.strokeText(this.partialText,0,0)}class gr extends ye{constructor(t){super(t),this.dummyCanvas=te.createCanvasElement(),this.dataArray=[],this.dataArray=rn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=rn.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return te.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHe
position: relative;
width: -moz-fit-content;
width: fit-content;
height: -moz-fit-content;
height: fit-content;
overflow: hidden;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
margin: 0;
padding: 0;
}
.transform-component-module_content__2jYgh {
display: flex;
flex-wrap: wrap;
width: -moz-fit-content;
width: fit-content;
height: -moz-fit-content;
height: fit-content;
margin: 0;
padding: 0;
transform-origin: 0% 0%;
}
.transform-component-module_content__2jYgh img {
pointer-events: none;
}
`,e$={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};EBe(PBe);var TBe=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,i=e.contentClass,o=i===void 0?"":i,a=e.wrapperStyle,s=e.contentStyle,l=S.exports.useContext(dK).setComponents,u=S.exports.useRef(null),c=S.exports.useRef(null);return S.exports.useEffect(function(){var f=u.current,p=c.current;f!==null&&p!==null&&l&&l(f,p)},[]),m("div",{ref:u,className:"react-transform-wrapper "+e$.wrapper+" "+r,style:a,children:m("div",{ref:c,className:"react-transform-component "+e$.content+" "+o,style:s,children:t})})};function LBe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=S.exports.useState(0),[a,s]=S.exports.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},c=()=>{s(!a)};return m(kBe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:f,zoomOut:p,resetTransform:g,centerView:v})=>D(Ct,{children:[D("div",{className:"lightbox-image-options",children:[m(Ie,{icon:m(MRe,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>f(),fontSize:20}),m(Ie,{icon:m(IRe,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>p(),fontSize:20}),m(Ie,{icon:m(ARe,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),m(Ie,{icon:m(ORe,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),m(Ie,{icon:m(NRe,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:c,fontSize:20}),m(Ie,{icon:m(f4,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{g(),o(0),s(!1)},fontSize:20})]}),m(TBe,{wrapperStyle:{width:"100%",height:"100%"},children:m("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>v(1,0,"easeOut")})})]})})}function ABe(){const e=me(),t=ne(p=>p.lightbox.isLightboxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=ne(fY),[a,s]=S.exports.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},c=()=>{e(O_())},f=()=>{e(A_())};return Re("Esc",()=>{t&&e(Qf(!1))},[t]),D("div",{className:"lightbox-container",children:[m(Ie,{icon:m(LRe,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(Qf(!1))},fontSize:20}),D("div",{className:"lightbox-display-container",children:[D("div",{className:"lightbox-preview-wrapper",children:[m(cY,{}),!r&&D("div",{className:"current-image-next-prev-buttons",children:[m("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&m(_o,{"aria-label":"Previous image",icon:m(JG,{className:"next-prev-button"}),variant:"unstyled",onClick:c})}),m("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&m(_o,{"aria-label":"Next image",icon:m(eY,{className:"next-prev-button"}),variant:"unstyled",onClick:f})})]}),n&&D(Ct,{children:[m(LBe,{image:n.url,styleClass:"lightbox-image"}),r&&m(uk,{image:n})]})]}),m(QY,{})]})]})}function OBe(e){return We({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zM8 13H3V2h5v11zm6 0H9V2h5v11z"}}]})(e)}const MBe=Fe(sd,e=>({resultImages:e.categories.result.images,userImages:e.categories.user.images})),IBe=()=>{const{resultImages:e,userImages:t}=ne(MBe);return n=>{const r=e.find(o=>o.uuid===n);if(r)return r;const i=t.find(o=>o.uuid===n);if(i)return i}},RBe=Fe([od,n4,Un],(e,t,n)=>{const{shouldShowDualDisplay:r,shouldPinParametersPanel:i}=e,{isLightboxOpen:o}=t;return{shouldShowDualDisplay:r,shouldPinParametersPanel:i,isLightboxOpen:o,shouldShowDualDisplayButton:["inpainting"].includes(n),activeTabName:n}},{memoizeOptions:{resultEqualityCheck:Ue}}),bk=e=>{const t=me(),{optionsPanel:n,children:r,styleClass:i}=e,{activeTabName:o,shouldShowDualDisplay:a,isLightboxOpen:s,shouldShowDualDisplayButton:l}=ne(RBe),u=IBe(),c=()=>{t(D_e(!a)),t(hr(!0))},f=p=>{const g=p.dataTransfer.getData("invokeai/imageUuid"),v=u(g);!v||(o==="img2img"?t(Wh(v)):o==="unifiedCanvas"&&t(K3(v)))};return m("div",{className:i?`
* @license React
* react-reconciler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var wFe=function(t){var n={},r=S.exports,i=Nf.exports,o=Object.assign;function a(d){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+d,b=1;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b]);return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),T=Symbol.iterator;function A(d){return d===null||typeof d!="object"?null:(d=T&&d[T]||d["@@iterator"],typeof d=="function"?d:null)}function O(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case c:return"Fragment";case u:return"Portal";case p:return"Profiler";case f:return"StrictMode";case C:return"Suspense";case w:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case v:return(d.displayName||"Context")+".Consumer";case g:return(d._context.displayName||"Context")+".Provider";case y:var h=d.render;return d=d.displayName,d||(d=h.displayName||h.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case x:return h=d.displayName||null,h!==null?h:O(d.type)||"Memo";case k:h=d._payload,d=d._init;try{return O(d(h))}catch(b){}}return null}function M(d){var h=d.type;switch(d.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=h.render,d=d.displayName||d.name||"",h.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return O(h);case 8:return h===f?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function R(d){var h=d,b=d;if(d.alternate)for(;h.return;)h=h.return;else{d=h;do h=d,(h.flags&4098)!==0&&(b=h.return),d=h.return;while(d)}return h.tag===3?b:null}function $(d){if(R(d)!==d)throw Error(a(188))}function V(d){var h=d.alternate;if(!h){if(h=R(d),h===null)throw Error(a(188));return h!==d?null:d}for(var b=d,_=h;;){var E=b.return;if(E===null)break;var L=E.alternate;if(L===null){if(_=E.return,_!==null){b=_;continue}break}if(E.child===L.child){for(L=E.child;L;){if(L===b)return $(E),d;if(L===_)return $(E),h;L=L.sibling}throw Error(a(188))}if(b.return!==_.return)b=E,_=L;else{for(var F=!1,Q=E.child;Q;){if(Q===b){F=!0,b=E,_=L;break}if(Q===_){F=!0,_=E,b=L;break}Q=Q.sibling}if(!F){for(Q=L.child;Q;){if(Q===b){F=!0,b=L,_=E;break}if(Q===_){F=!0,_=L,b=E;break}Q=Q.sibling}if(!F)throw Error(a(189))}}if(b.alternate!==_)throw Error(a(190))}if(b.tag!==3)throw Error(a(188));return b.stateNode.current===b?d:h}function Y(d){return d=V(d),d!==null?z(d):null}function z(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var h=z(d);if(h!==null)return h;d=d.sibling}return null}function I(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var h=I(d);if(h!==null)return h}d=d.sibling}return null}var N=Array.isArray,H=t.getPublicInstance,W=t.getRootHostContext,B=t.getChildHostContext,U=t.prepareForCommit,q=t.resetAfterCommit,re=t.createInstance,le=t.appendInitialChild,he=t.finalizeInitialChildren,se=t.prepareUpdate,Oe=t.shouldSetTextContent,be=t.createTextInstance,De=t.scheduleTimeout,fe=t.cancelTimeout,Xe=t.noTimeout,rt=t.isPrimaryRenderer,Ze=t.supportsMutation,et=t.supportsPersistence,nt
`+Ou+d}var ol=!1;function md(d,h){if(!d||ol)return"";ol=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(h)if(h=function(){throw Error()},Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(_e){var _=_e}Reflect.construct(d,[],h)}else{try{h.call()}catch(_e){_=_e}d.call(h.prototype)}else{try{throw Error()}catch(_e){_=_e}d()}}catch(_e){if(_e&&_&&typeof _e.stack=="string"){for(var E=_e.stack.split(`
`),L=_.stack.split(`
`),F=E.length-1,Q=L.length-1;1<=F&&0<=Q&&E[F]!==L[Q];)Q--;for(;1<=F&&0<=Q;F--,Q--)if(E[F]!==L[Q]){if(F!==1||Q!==1)do if(F--,Q--,0>Q||E[F]!==L[Q]){var ae=`
`+E[F].replace(" at new "," at ");return d.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",d.displayName)),ae}while(1<=F&&0<=Q);break}}}finally{ol=!1,Error.prepareStackTrace=b}return(d=d?d.displayName||d.name:"")?Mu(d):""}var G4=Object.prototype.hasOwnProperty,rp=[],al=-1;function Ro(d){return{current:d}}function an(d){0>al||(d.current=rp[al],rp[al]=null,al--)}function en(d,h){al++,rp[al]=d.current,d.current=h}var ma={},mr=Ro(ma),Fr=Ro(!1),gs=ma;function sl(d,h){var b=d.type.contextTypes;if(!b)return ma;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===h)return _.__reactInternalMemoizedMaskedChildContext;var E={},L;for(L in b)E[L]=h[L];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=h,d.__reactInternalMemoizedMaskedChildContext=E),E}function zr(d){return d=d.childContextTypes,d!=null}function vd(){an(Fr),an(mr)}function W1(d,h,b){if(mr.current!==ma)throw Error(a(168));en(mr,h),en(Fr,b)}function Iu(d,h,b){var _=d.stateNode;if(h=h.childContextTypes,typeof _.getChildContext!="function")return b;_=_.getChildContext();for(var E in _)if(!(E in h))throw Error(a(108,M(d)||"Unknown",E));return o({},b,_)}function ll(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||ma,gs=mr.current,en(mr,d),en(Fr,Fr.current),!0}function G1(d,h,b){var _=d.stateNode;if(!_)throw Error(a(169));b?(d=Iu(d,h,gs),_.__reactInternalMemoizedMergedChildContext=d,an(Fr),an(mr),en(mr,d)):an(Fr),en(Fr,b)}var Di=Math.clz32?Math.clz32:K4,Y1=Math.log,Y4=Math.LN2;function K4(d){return d>>>=0,d===0?32:31-(Y1(d)/Y4|0)|0}var yd=64,Ru=4194304;function $u(d){switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function bd(d,h){var b=d.pendingLanes;if(b===0)return 0;var _=0,E=d.suspendedLanes,L=d.pingedLanes,F=b&268435455;if(F!==0){var Q=F&~E;Q!==0?_=$u(Q):(L&=F,L!==0&&(_=$u(L)))}else F=b&~E,F!==0?_=$u(F):L!==0&&(_=$u(L));if(_===0)return 0;if(h!==0&&h!==_&&(h&E)===0&&(E=_&-_,L=h&-h,E>=L||E===16&&(L&4194240)!==0))return h;if((_&4)!==0&&(_|=b&16),h=d.entangledLanes,h!==0)for(d=d.entanglements,h&=_;0<h;)b=31-Di(h),E=1<<b,_|=d[b],h&=~E;return _}function q4(d,h){switch(d){case 1:case 2:case 4:return h+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ip(d,h){for(var b=d.suspendedLanes,_=d.pingedLanes,E=d.expirationTimes,L=d.pendingLanes;0<L;){var F=31-Di(L),Q=1<<F,ae=E[F];ae===-1?((Q&b)===0||(Q&_)!==0)&&(E[F]=q4(Q,h)):ae<=h&&(d.expiredLanes|=Q),L&=~Q}}function op(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function K1(){var d=yd;return yd<<=1,(yd&4194240)===0&&(yd=64),d}function ap(d){for(var h=[],b=0;31>b;b++)h.push(d);return h}function va(d,h,b){d.pendingLanes|=h,h!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,h=31-Di(h),d[h]=b}function sp(d,h){var b=d.pendingLanes&~h;d.pendingLanes=h,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=h,d.mutableReadLanes&=h,d.entangledLanes&=h,h=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0<b;){var E=31-Di(b),L=1<<E;h[E]=0,_[E]=-1,d[E]=-1,b&=~L}}function Du(d,h){var b=d.entangledLanes|=h;for(d=d.entanglements;b;){var _=31-Di(b),E=1<<_;E&h|d[_]&h&&(d[_]|=h),b&=~E}}var wt=0;function q1(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var Sd=i.unstable_scheduleCallback,xd=i.unstabl
Error generating stack: `+L.message+`
`+L.stack}return{value:d,source:h,stack:E,digest:null}}function w5(d,h,b){return{value:d,source:null,stack:b!=null?b:null,digest:h!=null?h:null}}function C5(d,h){try{console.error(h.value)}catch(b){setTimeout(function(){throw b})}}var Bq=typeof WeakMap=="function"?WeakMap:Map;function NE(d,h,b){b=ys(-1,b),b.tag=3,b.payload={element:null};var _=h.value;return b.callback=function(){P0||(P0=!0,H5=_),C5(d,h)},b}function BE(d,h,b){b=ys(-1,b),b.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var E=h.value;b.payload=function(){return _(E)},b.callback=function(){C5(d,h)}}var L=d.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(b.callback=function(){C5(d,h),typeof _!="function"&&(dl===null?dl=new Set([this]):dl.add(this));var F=h.stack;this.componentDidCatch(h.value,{componentStack:F!==null?F:""})}),b}function FE(d,h,b){var _=d.pingCache;if(_===null){_=d.pingCache=new Bq;var E=new Set;_.set(h,E)}else E=_.get(h),E===void 0&&(E=new Set,_.set(h,E));E.has(b)||(E.add(b),d=Qq.bind(null,d,h,b),h.then(d,d))}function zE(d){do{var h;if((h=d.tag===13)&&(h=d.memoizedState,h=h!==null?h.dehydrated!==null:!0),h)return d;d=d.return}while(d!==null);return null}function jE(d,h,b,_,E){return(d.mode&1)===0?(d===h?d.flags|=65536:(d.flags|=128,b.flags|=131072,b.flags&=-52805,b.tag===1&&(b.alternate===null?b.tag=17:(h=ys(-1,1),h.tag=2,cl(b,h,1))),b.lanes|=1),d):(d.flags|=65536,d.lanes=E,d)}var Fq=s.ReactCurrentOwner,yi=!1;function ii(d,h,b,_){h.child=d===null?pE(h,null,b,_):Ed(h,d.child,b,_)}function VE(d,h,b,_,E){b=b.render;var L=h.ref;return kd(h,E),_=m5(d,h,b,_,L,E),b=v5(),d!==null&&!yi?(h.updateQueue=d.updateQueue,h.flags&=-2053,d.lanes&=~E,bs(d,h,E)):(An&&b&&Z4(h),h.flags|=1,ii(d,h,_,E),h.child)}function HE(d,h,b,_,E){if(d===null){var L=b.type;return typeof L=="function"&&!q5(L)&&L.defaultProps===void 0&&b.compare===null&&b.defaultProps===void 0?(h.tag=15,h.type=L,UE(d,h,L,_,E)):(d=I0(b.type,null,_,h,h.mode,E),d.ref=h.ref,d.return=h,h.child=d)}if(L=d.child,(d.lanes&E)===0){var F=L.memoizedProps;if(b=b.compare,b=b!==null?b:t0,b(F,_)&&d.ref===h.ref)return bs(d,h,E)}return h.flags|=1,d=gl(L,_),d.ref=h.ref,d.return=h,h.child=d}function UE(d,h,b,_,E){if(d!==null){var L=d.memoizedProps;if(t0(L,_)&&d.ref===h.ref)if(yi=!1,h.pendingProps=_=L,(d.lanes&E)!==0)(d.flags&131072)!==0&&(yi=!0);else return h.lanes=d.lanes,bs(d,h,E)}return _5(d,h,b,_,E)}function WE(d,h,b){var _=h.pendingProps,E=_.children,L=d!==null?d.memoizedState:null;if(_.mode==="hidden")if((h.mode&1)===0)h.memoizedState={baseLanes:0,cachePool:null,transitions:null},en(Od,Bi),Bi|=b;else{if((b&1073741824)===0)return d=L!==null?L.baseLanes|b:b,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:d,cachePool:null,transitions:null},h.updateQueue=null,en(Od,Bi),Bi|=d,null;h.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=L!==null?L.baseLanes:b,en(Od,Bi),Bi|=_}else L!==null?(_=L.baseLanes|b,h.memoizedState=null):_=b,en(Od,Bi),Bi|=_;return ii(d,h,E,b),h.child}function GE(d,h){var b=h.ref;(d===null&&b!==null||d!==null&&d.ref!==b)&&(h.flags|=512,h.flags|=2097152)}function _5(d,h,b,_,E){var L=zr(b)?gs:mr.current;return L=sl(h,L),kd(h,E),b=m5(d,h,b,_,L,E),_=v5(),d!==null&&!yi?(h.updateQueue=d.updateQueue,h.flags&=-2053,d.lanes&=~E,bs(d,h,E)):(An&&_&&Z4(h),h.flags|=1,ii(d,h,b,E),h.child)}function YE(d,h,b,_,E){if(zr(b)){var L=!0;ll(h)}else L=!1;if(kd(h,E),h.stateNode===null)g0(d,h),cE(h,b,_),u5(h,b,_,E),_=!0;else if(d===null){var F=h.stateNode,Q=h.memoizedProps;F.props=Q;var ae=F.context,_e=b.contextType;typeof _e=="object"&&_e!==null?_e=io(_e):(_e=zr(b)?gs:mr.current,_e=sl(h,_e));var Ye=b.getDerivedStateFromProps,dt=typeof Ye=="function"||typeof F.getSnapshotBeforeUpdate=="function";dt||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(Q!==_||ae!==_e)&&dE(h,F,_,_e),ul=!1;var Be=h.memoizedState;F.state=Be,o0(h,_,F,E),ae=h.memoizedState,Q!==_||Be!==ae||Fr.current||ul?(typeof Ye=="function"&&(l5(h,b,Ye,_),ae=h.memoizedState),(Q=ul||uE(h,b,Q,_,Be,ae,_e))?(dt||typeof F.UNSAFE_componentWillMount!="f
`+(_.join(" > ")+`
No matching component was found for:
`)+d.join(" > ")}return null},n.getPublicRootInstance=function(d){if(d=d.current,!d.child)return null;switch(d.child.tag){case 5:return H(d.child.stateNode);default:return d.child.stateNode}},n.injectIntoDevTools=function(d){if(d={bundleType:d.bundleType,version:d.version,rendererPackageName:d.rendererPackageName,rendererConfig:d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:iX,findFiberByHostInstance:d.findFiberByHostInstance||oX,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(h.isDisabled||!h.supportsFiber)d=!0;else{try{wd=h.inject(d),to=h}catch(b){}d=!!h.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,h,b,_){if(!J)throw Error(a(363));d=B5(d,h);var E=gt(d,b,_).disconnect;return{disconnect:function(){E()}}},n.registerMutableSourceForHydration=function(d,h){var b=h._getVersion;b=b(h._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[h,b]:d.mutableSourceEagerHydrationData.push(h,b)},n.runWithPriority=function(d,h){var b=wt;try{return wt=d,h()}finally{wt=b}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,h,b,_){var E=h.current,L=Wr(),F=hl(E);return b=_P(b),h.context===null?h.context=b:h.pendingContext=b,h=ys(L,F),h.payload={element:d},_=_===void 0?null:_,_!==null&&(h.callback=_),d=cl(E,h,F),d!==null&&(so(d,E,F,L),i0(d,E,F)),F},n};(function(e){e.exports=wFe})(bK);const CFe=E7(bK.exports);var Mk={exports:{}},ud={};/**
* @license React
* react-reconciler-constants.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/ud.ConcurrentRoot=1;ud.ContinuousEventPriority=4;ud.DefaultEventPriority=16;ud.DiscreteEventPriority=1;ud.IdleEventPriority=536870912;ud.LegacyRoot=0;(function(e){e.exports=ud})(Mk);const t$={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let n$=!1,r$=!1;const Ik=".react-konva-event",_Fe=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
Consider to add onDragMove or onDragEnd events.
For more info see: https://github.com/konvajs/react-konva/issues/256
`,kFe=`ReactKonva: You are using "zIndex" attribute for a Konva node.
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
For more info see: https://github.com/konvajs/react-konva/issues/194
`,EFe={};function w4(e,t,n=EFe){if(!n$&&"zIndex"in t&&(console.warn(kFe),n$=!0),!r$&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(_Fe),r$=!0)}for(var o in n)if(!t$[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var u=!t.hasOwnProperty(o);u&&e.setAttr(o,void 0)}var c=t._useStrictMode,f={},p=!1;const g={};for(var o in t)if(!t$[o]){var a=o.slice(0,2)==="on",v=n[o]!==t[o];if(a&&v){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(g[l]=t[o])}!a&&(t[o]!==n[o]||c&&t[o]!==e.getAttr(o))&&(p=!0,f[o]=t[o])}p&&(e.setAttrs(f),Lu(e));for(var l in g)e.on(l+Ik,g[l])}function Lu(e){if(!He.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const SK={},PFe={};Vc.Node.prototype._applyProps=w4;function TFe(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Lu(e)}function LFe(e,t,n){let r=Vc[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=Vc.Group);const i={},o={};for(var a in t){var s=a.slice(0,2)==="on";s?o[a]=t[a]:i[a]=t[a]}const l=new r(i);return w4(l,o),l}function AFe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function OFe(e,t,n){return!1}function MFe(e){return e}function IFe(){return null}function RFe(){return null}function $Fe(e,t,n,r){return PFe}function DFe(){}function NFe(e){}function BFe(e,t){return!1}function FFe(){return SK}function zFe(){return SK}const jFe=setTimeout,VFe=clearTimeout,HFe=-1;function UFe(e,t){return!1}const WFe=!1,GFe=!0,YFe=!0;function KFe(e,t){t.parent===e?t.moveToTop():e.add(t),Lu(e)}function qFe(e,t){t.parent===e?t.moveToTop():e.add(t),Lu(e)}function xK(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Lu(e)}function XFe(e,t,n){xK(e,t,n)}function ZFe(e,t){t.destroy(),t.off(Ik),Lu(e)}function QFe(e,t){t.destroy(),t.off(Ik),Lu(e)}function JFe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function eze(e,t,n){}function tze(e,t,n,r,i){w4(e,i,r)}function nze(e){e.hide(),Lu(e)}function rze(e){}function ize(e,t){(t.visible==null||t.visible)&&e.show()}function oze(e,t){}function aze(e){}function sze(){}const lze=()=>Mk.exports.DefaultEventPriority,uze=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:TFe,createInstance:LFe,createTextInstance:AFe,finalizeInitialChildren:OFe,getPublicInstance:MFe,prepareForCommit:IFe,preparePortalMount:RFe,prepareUpdate:$Fe,resetAfterCommit:DFe,resetTextContent:NFe,shouldDeprioritizeSubtree:BFe,getRootHostContext:FFe,getChildHostContext:zFe,scheduleTimeout:jFe,cancelTimeout:VFe,noTimeout:HFe,shouldSetTextContent:UFe,isPrimaryRenderer:WFe,warnsIfNotActing:GFe,supportsMutation:YFe,appendChild:KFe,appendChildToContainer:qFe,insertBefore:xK,insertInContainerBefore:XFe,removeChild:ZFe,removeChildFromContainer:QFe,commitTextUpdate:JFe,commitMount:eze,commitUpdate:tze,hideInstance:nze,hideTextInstance:rze,unhideInstance:ize,unhideTextInstance:oze,clearContainer:aze,detachDeletedInstance:sze,getCurrentEventPriority:lze,now:Nf.exports.unstable_now,idlePriority:Nf.exports.unstable_IdlePriority,run:Nf.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var cze=Object.defineProperty,dze=Object.defineProperties,fze=Object.getOwnPropertyDescriptors,i$=Object.getOwnPropertySymbols,hze=Object.prototype.hasOwnProperty,pze=Object.prototype.propertyIsEnumerable,o$=(e,t,n)=>t in e?cze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a$=(e,t)=>{for(var n in t||(t={}))hze.call(t,n)&&o$(e,n,t[n]);if(i$)
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g transform="matrix(0.5,0,0,0.5,0,0)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
</svg>`.replaceAll("black",e),gje=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=ne(pje),[a,s]=S.exports.useState(null),[l,u]=S.exports.useState(0),c=S.exports.useRef(null),f=S.exports.useCallback(()=>{u(l+1),setTimeout(f,500)},[l]);return S.exports.useEffect(()=>{if(a)return;const p=new Image;p.onload=()=>{s(p)},p.src=c$(n)},[a,n]),S.exports.useEffect(()=>{!a||(a.src=c$(n))},[a,n]),S.exports.useEffect(()=>{const p=setInterval(()=>u(g=>(g+1)%5),50);return()=>clearInterval(p)},[]),!a||!Xd(r.x)||!Xd(r.y)||!Xd(o)||!Xd(i.width)||!Xd(i.height)?null:m(Ks,{ref:c,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Xd(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},mje=Fe([Pt],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Ue}}),vje=e=>{const{...t}=e,{objects:n}=ne(mje);return m(Ys,{listening:!1,...t,children:n.filter(P_).map((r,i)=>m(hb,{points:r.points,stroke:"rgb(0,0,0)",strokeWidth:r.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:r.tool==="brush"?"source-over":"destination-out"},i))})};var Xu=S.exports,yje=function(t,n,r){const i=Xu.useRef("loading"),o=Xu.useRef(),[a,s]=Xu.useState(0),l=Xu.useRef(),u=Xu.useRef(),c=Xu.useRef();return(l.current!==t||u.current!==n||c.current!==r)&&(i.current="loading",o.current=void 0,l.current=t,u.current=n,c.current=r),Xu.useLayoutEffect(function(){if(!t)return;var f=document.createElement("img");function p(){i.current="loaded",o.current=f,s(Math.random())}function g(){i.current="failed",o.current=void 0,s(Math.random())}return f.addEventListener("load",p),f.addEventListener("error",g),n&&(f.crossOrigin=n),r&&(f.referrerpolicy=r),f.src=t,function(){f.removeEventListener("load",p),f.removeEventListener("error",g)}},[t,n,r]),[o.current,i.current]};const EK=e=>{const{url:t,x:n,y:r}=e,[i]=yje(t);return m(_K,{x:n,y:r,image:i,listening:!1})},bje=Fe([Pt],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Ue}}),Sje=()=>{const{objects:e}=ne(bje);return e?m(Ys,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(Yy(t))return m(EK,{x:t.x,y:t.y,url:t.image.url},n);if(N7e(t)){const r=m(hb,{points:t.points,stroke:t.color?Ac(t.color):"rgb(0,0,0)",strokeWidth:t.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:t.tool==="brush"?"source-over":"destination-out"},n);return t.clip?m(Ys,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(B7e(t))return m(Ks,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Ac(t.color)},n);if(F7e(t))return m(Ks,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},xje=Fe([Pt],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingImage:r,shouldShowStagingOutline:i,boundingBoxCoordinates:{x:o,y:a},boundingBoxDimensions:{width:s,height:l}}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage:n===t.length-1,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}},{memoizeOptions:{resultEqualityCheck:Ue}}),wje=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}=ne(xje);return D(Ys,{...t,children:[r&&n&&m(EK,{url:n.image.url,x:o,y:a}),i&&D(Ys,{children:[m(Ks,{x:o,y:a,width:s,height:l,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),m(Ks,{x:o,y:a,width:s,height:l,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},Cje=Fe([Pt],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingOutline:r,shouldShowStagingImage:i}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage:n===t.length-1,shouldShowStagingImage:i,shouldShowStagingOutline:r}},{memo
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CHe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _He(e){if(Array.isArray(e))return g7(e)}function y$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function b$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y$(Object(n),!0).forEach(function(r){jK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ym(e,t){return PHe(e)||EHe(e,t)||VK(e,t)||kHe()}function kHe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VK(e,t){if(!!e){if(typeof e=="string")return g7(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 g7(e,t)}}function g7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EHe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function PHe(e){if(Array.isArray(e))return e}var THe="file-invalid-type",LHe="file-too-large",AHe="file-too-small",OHe="too-many-files",MHe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:THe,message:"File type must be ".concat(n)}},S$=function(t){return{code:LHe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},x$=function(t){return{code:AHe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},IHe={code:OHe,message:"Too many files"};function HK(e,t){var n=e.type==="application/x-moz-file"||xHe(e,t);return[n,n?null:MHe(t)]}function UK(e,t,n){if(uc(e.size))if(uc(t)&&uc(n)){if(e.size>n)return[!1,S$(n)];if(e.size<t)return[!1,x$(t)]}else{if(uc(t)&&e.size<t)return[!1,x$(t)];if(uc(n)&&e.size>n)return[!1,S$(n)]}return[!0,null]}function uc(e){return e!=null}function RHe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var u=HK(l,n),c=Ym(u,1),f=c[0],p=UK(l,r,i),g=Ym(p,1),v=g[0],y=s?s(l):null;return f&&v&&!y})}function mb(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Qv(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 w$(e){e.preventDefault()}function $He(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function DHe(e){return e.indexOf("Edge/")!==-1}function NHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return $He(e)||DHe(e)}function La(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!mb(r)&&s&&s.apply(void 0,[r].concat(o)),mb(r)})}}function BHe(){return"showOpenFilePicker"in window}function FHe(e){if(uc(e)){var t=Object.entries(e).filter(function(n){var r=Ym(n,2),i=r[0],o=r[1],a=!0;return WK(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(GK))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Ym(r,2),o=i[0],a=i[1];return b$(b$({},n),{},jK({},o,a))},{});return[{description:"Files",accept:t}]}return e}function zHe(e){if(uc(e))return Object.entries(e).reduce(function(t,n){var r=Ym(n,2),i=r[0],o=r[1];return[].concat(v$(t),[i],v$(o))},[]).filter(function(t){return WK(t)||GK(t)}).join(",")}function jHe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function VHe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function WK(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function GK(e){return/^.*\.[\w]+$/.test(e)}var HHe=["children"],UHe=["open"],WHe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qHe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XHe(e){if(Array.isArray(e))return m7(e)}function rw(e,t){return JHe(e)||QHe(e,t)||YK(e,t)||ZHe()}function ZHe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YK(e,t){if(!!e){if(typeof e=="string")return m7(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 m7(e,t)}}function m7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QHe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function JHe(e){if(Array.isArray(e))return e}function C$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C$(Object(n),!0).forEach(function(r){v7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vb(e,t){if(e==null)return{};var n=eUe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function eUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zk=S.exports.forwardRef(function(e,t){var n=e.children,r=vb(e,HHe),i=qK(r),o=i.open,a=vb(i,UHe);return S.exports.useImperativeHandle(t,function(){return{open:o}},[o]),m(S.exports.Fragment,{children:n(Dn(Dn({},a),{},{open:o}))})});zk.displayName="Dropzone";var KK={disabled:!1,getFilesFromEvent:fHe,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};zk.defaultProps=KK;zk.propTypes={children:nn.exports.func,accept:nn.exports.objectOf(nn.exports.arrayOf(nn.exports.string)),multiple:nn.exports.bool,preventDropOnDocument:nn.exports.bool,noClick:nn.exports.bool,noKeyboard:nn.exports.bool,noDrag:nn.exports.bool,noDragEventsBubbling:nn.exports.bool,minSize:nn.exports.number,maxSize:nn.exports.number,maxFiles:nn.exports.number,disabled:nn.exports.bool,getFilesFromEvent:nn.exports.func,onFileDialogCancel:nn.exports.func,onFileDialogOpen:nn.exports.func,useFsAccessApi:nn.exports.bool,autoFocus:nn.exports.bool,onDragEnter:nn.exports.func,onDragLeave:nn.exports.func,onDragOver:nn.exports.func,onDrop:nn.exports.func,onDropAccepted:nn.exports.func,onDropRejected:nn.exports.func,onError:nn.exports.func,validator:nn.exports.func};var y7={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function qK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Dn(Dn({},KK),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,v=t.onDropRejected,y=t.onFileDialogCancel,C=t.onFileDialogOpen,w=t.useFsAccessApi,x=t.autoFocus,k=t.preventDropOnDocument,P=t.noClick,T=t.noKeyboard,A=t.noDrag,O=t.noDragEventsBubbling,M=t.onError,R=t.validator,$=S.exports.useMemo(function(){return zHe(n)},[n]),V=S.exports.useMemo(function(){return FHe(n)},[n]),Y=S.exports.useMemo(function(){return typeof C=="function"?C:_$},[C]),z=S.exports.useMemo(function(){return typeof y=="function"?y:_$},[y]),I=S.exports.useRef(null),N=S.exports.useRef(null),H=S.exports
${A.message}`,"");i({title:o("toast:uploadFailed"),description:P,status:"error",isClosable:!0})},[o,i]),c=S.exports.useCallback(async k=>{n(fR({imageFile:k}))},[n]),f=S.exports.useCallback((k,P)=>{P.forEach(T=>{u(T)}),k.forEach(T=>{c(T)})},[c,u]),{getRootProps:p,getInputProps:g,isDragAccept:v,isDragReject:y,isDragActive:C,open:w}=qK({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:f,onDragOver:()=>s(!0),maxFiles:1});l(w),S.exports.useEffect(()=>{const k=P=>{var M;const T=(M=P.clipboardData)==null?void 0:M.items;if(!T)return;const A=[];for(const R of T)R.kind==="file"&&["image/png","image/jpg"].includes(R.type)&&A.push(R);if(!A.length)return;if(P.stopImmediatePropagation(),A.length>1){i({description:o("toast:uploadFailedMultipleImagesDesc"),status:"error",isClosable:!0});return}const O=A[0].getAsFile();if(!O){i({description:o("toast:uploadFailedUnableToLoadDesc"),status:"error",isClosable:!0});return}n(fR({imageFile:O}))};return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[o,n,i,r]);const x=["img2img","unifiedCanvas"].includes(r)?` to ${vo[r].tooltip}`:"";return m(G_.Provider,{value:w,children:D("div",{...p({style:{}}),onKeyDown:k=>{k.key},children:[m("input",{...g()}),t,C&&a&&m(nUe,{isDragAccept:v,isDragReject:y,overlaySecondaryText:x,setIsHandlingUpload:s})]})})},iUe=Fe(vn,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),oUe=Fe(vn,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Ue}}),aUe=()=>{const e=me(),t=ne(iUe),{shouldShowLogViewer:n,hasError:r,wasErrorSeen:i}=ne(oUe),[o,a]=S.exports.useState(!0),s=S.exports.useRef(null);S.exports.useLayoutEffect(()=>{s.current!==null&&o&&(s.current.scrollTop=s.current.scrollHeight)},[o,t,n]);const l=()=>{e(wW()),e(Ix(!n))};return Re("`",()=>{e(Ix(!n))},[n]),Re("esc",()=>{e(Ix(!1))}),D(Ct,{children:[n&&m(hY,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0,zIndex:9999},maxHeight:"90vh",children:m("div",{className:"console",ref:s,onScroll:()=>{!s.current||o&&s.current.scrollTop<s.current.scrollHeight-s.current.clientHeight&&a(!1)},children:t.map((c,f)=>{const{timestamp:p,message:g,level:v}=c;return D("div",{className:`console-entry console-${v}-color`,children:[D("p",{className:"console-timestamp",children:[p,":"]}),m("p",{className:"console-message",children:g})]},f)})})}),n&&m(ri,{hasArrow:!0,label:o?"Autoscroll On":"Autoscroll Off",children:m(_o,{className:"console-autoscroll-icon-button","data-autoscroll-enabled":o,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:m(zIe,{}),onClick:()=>a(!o)})}),m(ri,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:m(_o,{className:"console-toggle-icon-button","data-error-seen":r||!i,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?m(tRe,{}):m(nY,{}),onClick:l})})]})},sUe=Fe(vn,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Ue}}),lUe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=ne(sUe),i=t?Math.round(t*100/n):0;return m(ZV,{value:i,isIndeterminate:e&&!r,className:"progress-bar"})};function uUe(e){const{title:t,hotkey:n,description:r}=e;return D("div",{className:"hotkey-modal-item",children:[D("div",{className:"hotkey-info",children:[m("p",{className:"hotkey-title",children:t}),r&&m("p",{className:"hotkey-description",children:r})]}),m("div",{className:"hotkey-key",children:n})]})}function cUe({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Mc(),{t:i}=we(),o=[{title:i("hotkeys:invoke.title"),desc:i("hotkeys:invoke.desc"),hotkey:"Ctrl+Enter"},{title:i("hotkeys:cancel.title"),desc:i("hotkeys:cancel.desc"),hotkey:"Shift+X"},{title:i("hotkeys:focusPrompt.title"),desc:i("hotkeys:focusPrompt.desc"),hotkey:"Alt+A"},{title:i("hotkeys:toggleOptions.title"),desc:i("hotkeys:toggleOptions.desc"),hotkey:"O"},{title:i("ho