easydiffusion/ui/frontend/dist/index.js

114 lines
338 KiB
JavaScript
Raw Normal View History

2022-09-30 18:29:42 +02:00
(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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)}})();function hd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _={exports:{}},A={};/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-30 18:29:42 +02:00
*/var Oi=Symbol.for("react.element"),Cg=Symbol.for("react.portal"),_g=Symbol.for("react.fragment"),Rg=Symbol.for("react.strict_mode"),Ng=Symbol.for("react.profiler"),bg=Symbol.for("react.provider"),Ig=Symbol.for("react.context"),Tg=Symbol.for("react.forward_ref"),Lg=Symbol.for("react.suspense"),Dg=Symbol.for("react.memo"),Fg=Symbol.for("react.lazy"),Wu=Symbol.iterator;function Mg(e){return e===null||typeof e!="object"?null:(e=Wu&&e[Wu]||e["@@iterator"],typeof e=="function"?e:null)}var gd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},md=Object.assign,vd={};function Er(e,t,n){this.props=e,this.context=t,this.refs=vd,this.updater=n||gd}Er.prototype.isReactComponent={};Er.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")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yd(){}yd.prototype=Er.prototype;function Pl(e,t,n){this.props=e,this.context=t,this.refs=vd,this.updater=n||gd}var Ol=Pl.prototype=new yd;Ol.constructor=Pl;md(Ol,Er.prototype);Ol.isPureReactComponent=!0;var Gu=Array.isArray,Sd=Object.prototype.hasOwnProperty,kl={current:null},wd={key:!0,ref:!0,__self:!0,__source:!0};function xd(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Sd.call(t,r)&&!wd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Oi,type:e,key:o,ref:s,props:i,_owner:kl.current}}function jg(e,t){return{$$typeof:Oi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function El(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oi}function Ag(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Yu=/\/+/g;function Cs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ag(""+e.key):t.toString(36)}function eo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Oi:case Cg:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Cs(s,0):r,Gu(i)?(n="",e!=null&&(n=e.replace(Yu,"$&/")+"/"),eo(i,t,n,"",function(u){return u})):i!=null&&(El(i)&&(i=jg(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Yu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Gu(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Cs(o,a);s+=eo(o,t,n,l,i)}else if(l=Mg(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Cs(o,a++),s+=eo(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 s}function Ti(e,t,n){if(e==null)return e;var r=[],i=0;return eo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function $g(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 Ne={current:null},to={transition:null},Ug={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:to,ReactCurrentOwner:kl};A.Children={map:Ti,forEach:function(e,t,n){Ti(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ti(e,function(){t++}),t},toArray:function(e){return Ti(e,function(t){return t})||[]},only:function(e){if(!El(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};A.Component=Er;A.Fragment=_g;A.Profiler=Ng;A.Pure
2022-09-14 16:48:46 +02:00
* @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.
2022-09-30 18:29:42 +02:00
*/(function(e){function t(I,D){var M=I.length;I.push(D);e:for(;0<M;){var B=M-1>>>1,Y=I[B];if(0<i(Y,D))I[B]=D,I[M]=Y,M=B;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var D=I[0],M=I.pop();if(M!==D){I[0]=M;e:for(var B=0,Y=I.length,Wt=Y>>>1;B<Wt;){var Oe=2*(B+1)-1,Bn=I[Oe],Ae=Oe+1,Dt=I[Ae];if(0>i(Bn,M))Ae<Y&&0>i(Dt,Bn)?(I[B]=Dt,I[Ae]=M,B=Ae):(I[B]=Bn,I[Oe]=M,B=Oe);else if(Ae<Y&&0>i(Dt,M))I[B]=Dt,I[Ae]=M,B=Ae;else break e}}return D}function i(I,D){var M=I.sortIndex-D.sortIndex;return M!==0?M:I.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(I){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=I)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function S(I){if(y=!1,m(I),!g)if(n(l)!==null)g=!0,Ge(k);else{var D=n(u);D!==null&&Te(S,D.startTime-I)}}function k(I,D){g=!1,y&&(y=!1,v(R),R=-1),h=!0;var M=d;try{for(m(D),f=n(l);f!==null&&(!(f.expirationTime>D)||I&&!T());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var Y=B(f.expirationTime<=D);D=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(l)&&r(l),m(D)}else r(l);f=n(l)}if(f!==null)var Wt=!0;else{var Oe=n(u);Oe!==null&&Te(S,Oe.startTime-D),Wt=!1}return Wt}finally{f=null,d=M,h=!1}}var O=!1,C=null,R=-1,P=5,E=-1;function T(){return!(e.unstable_now()-E<P)}function j(){if(C!==null){var I=e.unstable_now();E=I;var D=!0;try{D=C(!0,I)}finally{D?z():(O=!1,C=null)}}else O=!1}var z;if(typeof p=="function")z=function(){p(j)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Pe=H.port2;H.port1.onmessage=j,z=function(){Pe.postMessage(null)}}else z=function(){x(j,0)};function Ge(I){C=I,O||(O=!0,z())}function Te(I,D){R=x(function(){I(e.unstable_now())},D)}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(I){I.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,Ge(k))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(I){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var M=d;d=D;try{return I()}finally{d=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,D){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var M=d;d=I;try{return D()}finally{d=M}},e.unstable_scheduleCallback=function(I,D,M){var B=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?B+M:B):M=B,I){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=M+Y,I={id:c++,callback:D,priorityLevel:I,startTime:M,expirationTime:Y,sortIndex:-1},M>B?(I.sortIndex=M,t(u,I),n(l)===null&&I===n(u)&&(y?(v(R),R=-1):y=!0,Te(S,M-B))):(I.sortIndex=Y,t(l,I),g||h||(g=!0,Ge(k))),I},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(I){var D=d;return function(){var M=d;d=D;try{return I.apply(this,arguments)}finally{d=M}}}})(kd);(function(e){e.exports=kd})(Od);/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-30 18:29:42 +02:00
*/var Ed=_.exports,He=Od.exports;function b(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 Cd=new Set,Zr={};function Un(e,t){dr(e,t),dr(e+"Capture",t)}function dr(e,t){for(Zr[e]=t,e=0;e<t.length;e++)Cd.add(t[e])}var zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fa=Object.prototype.hasOwnProperty,zg=/^[: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]*$/,Ju={},Xu={};function Bg(e){return fa.call(Xu,e)?!0:fa.call(Ju,e)?!1:zg.test(e)?Xu[e]=!0:(Ju[e]=!0,!1)}function Qg(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 Hg(e,t,n,r){if(t===null||typeof t>"u"||Qg(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 be(e,t,n,r,i,o,s){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=s}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ve[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ve[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ve[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ve[e]=new be(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){ve[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ve[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ve[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ve[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ve[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cl=/[\-:]([a-z])/g;function _l(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 vert-ad
`+_s+e}var Rs=!1;function Ns(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(`
2022-09-17 00:35:48 +02:00
`),o=r.stack.split(`
2022-09-19 03:57:17 +02:00
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
2022-09-30 18:29:42 +02:00
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Rs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ar(e):""}function Vg(e){switch(e.tag){case 5:return Ar(e.type);case 16:return Ar("Lazy");case 13:return Ar("Suspense");case 19:return Ar("SuspenseList");case 0:case 2:case 15:return e=Ns(e.type,!1),e;case 11:return e=Ns(e.type.render,!1),e;case 1:return e=Ns(e.type,!0),e;default:return""}}function ga(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 Wn:return"Fragment";case Kn:return"Portal";case da:return"Profiler";case Nl:return"StrictMode";case pa:return"Suspense";case ha:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rd:return(e.displayName||"Context")+".Consumer";case _d:return(e._context.displayName||"Context")+".Provider";case bl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Il:return t=e.displayName||null,t!==null?t:ga(e.type)||"Memo";case Jt:t=e._payload,e=e._init;try{return ga(e(t))}catch{}}return null}function qg(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 ga(t);case 8:return t===Nl?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kg(e){var t=bd(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Di(e){e._valueTracker||(e._valueTracker=Kg(e))}function Id(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function go(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ma(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function ec(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(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 Td(e,t){t=t.checked,t!=null&&Rl(e,"checked",t,!1)}function va(e,t){Td(e,t);var n=gn(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")?ya(e,t.type,n):t.hasOwnProperty("defaultValue")&&ya(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tc(e,t,n){if(t.hasOwnPropert
`).replace(rv,"")}function Bi(e,t,n){if(t=kc(t),kc(e)!==t&&n)throw Error(b(425))}function Oo(){}var Ta=null,La=null;function Da(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 Fa=typeof setTimeout=="function"?setTimeout:void 0,iv=typeof clearTimeout=="function"?clearTimeout:void 0,Ec=typeof Promise=="function"?Promise:void 0,ov=typeof queueMicrotask=="function"?queueMicrotask:typeof Ec<"u"?function(e){return Ec.resolve(null).then(e).catch(sv)}:Fa;function sv(e){setTimeout(function(){throw e})}function Bs(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),ii(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ii(t)}function ln(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 Cc(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 _r=Math.random().toString(36).slice(2),Et="__reactFiber$"+_r,ui="__reactProps$"+_r,Bt="__reactContainer$"+_r,Ma="__reactEvents$"+_r,av="__reactListeners$"+_r,lv="__reactHandles$"+_r;function En(e){var t=e[Et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bt]||n[Et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cc(e);e!==null;){if(n=e[Et])return n;e=Cc(e)}return t}e=n,n=e.parentNode}return null}function Ci(e){return e=e[Et]||e[Bt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function ns(e){return e[ui]||null}var ja=[],Zn=-1;function wn(e){return{current:e}}function W(e){0>Zn||(e.current=ja[Zn],ja[Zn]=null,Zn--)}function q(e,t){Zn++,ja[Zn]=e.current,e.current=t}var mn={},xe=wn(mn),Fe=wn(!1),Ln=mn;function pr(e,t){var n=e.type.contextTypes;if(!n)return mn;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 Me(e){return e=e.childContextTypes,e!=null}function ko(){W(Fe),W(xe)}function _c(e,t,n){if(xe.current!==mn)throw Error(b(168));q(xe,t),q(Fe,n)}function wp(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(b(108,qg(e)||"Unknown",i));return Z({},n,r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,Ln=xe.current,q(xe,e),q(Fe,Fe.current),!0}function Rc(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=wp(e,t,Ln),r.__reactInternalMemoizedMergedChildContext=e,W(Fe),W(xe),q(xe,e)):W(Fe),q(Fe,n)}var Mt=null,rs=!1,Qs=!1;function xp(e){Mt===null?Mt=[e]:Mt.push(e)}function uv(e){rs=!0,xp(e)}function xn(){if(!Qs&&Mt!==null){Qs=!0;var e=0,t=V;try{var n=Mt;for(V=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Mt=null,rs=!1}catch(i){throw Mt!==null&&(Mt=Mt.slice(e+1)),qd(Ll,xn),i}finally{V=t,Qs=!1}}return null}var er=[],tr=0,Co=null,_o=0,Je=[],Xe=0,Dn=null,At=1,$t="";function On(e,t){er[tr++]=_o,er[tr++]=Co,Co=e,_o=t}function Pp(e,t,n){Je[Xe++]=At,Je[Xe++]=$t,Je[Xe++]=Dn,Dn=e;var r=At;e=$t;var i=32-ft(r)-1;r&=~(1<<i),n+=1;var o=32-ft(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,At=1<<32-ft(t)+i|n<<i|r,$t=o+e}else At=1<<o|n<<i|r,$t=e}function Bl(e){e.return!==null&&(On(e,1),Pp(e,1,0))}function Ql(e){for(;e===Co;)Co=er[--tr],er[tr]=null,_o=er[--tr],er[tr]=null;for(;e===Dn;)Dn=Je[--Xe],Je[Xe]=null,$t=Je[--Xe],Je[Xe]=null,At=Je[--Xe],Je[Xe]=null}var Qe=null,ze=null,G=!1,ct=null;function Op(e,t){var n=nt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
2022-09-17 00:35:48 +02:00
Error generating stack: `+o.message+`
2022-09-30 18:29:42 +02:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ws(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Qa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yv=typeof WeakMap=="function"?WeakMap:Map;function Jp(e,t,n){n=Ut(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fo||(Fo=!0,Za=r),Qa(e,t)},n}function Xp(e,t,n){n=Ut(-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(){Qa(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Qa(e,t),typeof r!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ac(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yv;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=Tv.bind(null,e,t,n),t.then(e,e))}function $c(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 Uc(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=Ut(-1,1),t.tag=2,un(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Sv=qt.ReactCurrentOwner,De=!1;function Ee(e,t,n,r){t.child=e===null?bp(t,null,n,r):gr(t,e.child,n,r)}function zc(e,t,n,r,i){n=n.render;var o=t.ref;return ur(t,i),r=eu(e,t,n,r,o,i),n=tu(),e!==null&&!De?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ht(e,t,i)):(G&&n&&Bl(t),t.flags|=1,Ee(e,t,r,i),t.child)}function Bc(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!fu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Zp(e,t,o,r,i)):(e=fo(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:si,n(s,r)&&e.ref===t.ref)return Ht(e,t,i)}return t.flags|=1,e=dn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Zp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(si(o,r)&&e.ref===t.ref)if(De=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(De=!0);else return t.lanes=e.lanes,Ht(e,t,i)}return Ha(e,t,n,r,i)}function eh(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},q(ir,$e),$e|=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,q(ir,$e),$e|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,q(ir,$e),$e|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,q(ir,$e),$e|=r;return Ee(e,t,i,n),t.child}function th(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ha(e,t,n,r,i){var o=Me(n)?Ln:xe.current;return o=pr(t,o),ur(t,i),n=eu(e,t,n,r,o,i),r=tu(),e!==null&&!De?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ht(e,t,i)):(G&&r&&Bl(t),t.flags|=1,Ee(e,t,n,i),t.child)}function Qc(e,t,n,r,i){if(Me(n)){var o=!0;Eo(t)}else o=!1;if(ur(t,i),t.stateNode===null)lo(e,t),Rp(t,n,r),Ba(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=it(u):(u=Me(n)?Ln:xe.current,u=pr(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Dc(t,s,r,u),Xt=!1;var d=t.memoizedState;s.state=d,bo(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Fe.current||Xt?(typeof c=="function"&&(za(t,n,c,r),l=t.memoizedState),(a=Xt||Lc(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillM
2022-09-14 16:48:46 +02:00
* @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.
2022-09-30 18:29:42 +02:00
*/var Sr=_.exports;function Qv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hv=typeof Object.is=="function"?Object.is:Qv,Vv=Sr.useState,qv=Sr.useEffect,Kv=Sr.useLayoutEffect,Wv=Sr.useDebugValue;function Gv(e,t){var n=t(),r=Vv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Kv(function(){i.value=n,i.getSnapshot=t,Xs(i)&&o({inst:i})},[e,n,t]),qv(function(){return Xs(i)&&o({inst:i}),e(function(){Xs(i)&&o({inst:i})})},[e]),Wv(n),n}function Xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hv(e,n)}catch{return!0}}function Yv(e,t){return t()}var Jv=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Yv:Gv;kh.useSyncExternalStore=Sr.useSyncExternalStore!==void 0?Sr.useSyncExternalStore:Jv;(function(e){e.exports=kh})(mu);var ps={exports:{}},hs={};/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-30 18:29:42 +02:00
*/var Xv=_.exports,Zv=Symbol.for("react.element"),ey=Symbol.for("react.fragment"),ty=Object.prototype.hasOwnProperty,ny=Xv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ry={key:!0,ref:!0,__self:!0,__source:!0};function Eh(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)ty.call(t,r)&&!ry.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:Zv,type:e,key:o,ref:s,props:i,_owner:ny.current}}hs.Fragment=ey;hs.jsx=Eh;hs.jsxs=Eh;(function(e){e.exports=hs})(ps);const Tt=ps.exports.Fragment,w=ps.exports.jsx,N=ps.exports.jsxs;/**
2022-09-14 16:48:46 +02:00
* react-query
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-30 18:29:42 +02:00
*/class Ri{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const mi=typeof window>"u";function Ye(){}function iy(e,t){return typeof e=="function"?e(t):e}function rl(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ch(e,t){return Math.max(e+(t||0)-Date.now(),0)}function po(e,t,n){return gs(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Zt(e,t,n){return gs(e)?[{...t,queryKey:e},n]:[e||{},t]}function rf(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(gs(s)){if(r){if(t.queryHash!==vu(s,t.options))return!1}else if(!$o(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function of(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(gs(o)){if(!t.options.mutationKey)return!1;if(n){if(Rn(t.options.mutationKey)!==Rn(o))return!1}else if(!$o(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function vu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rn)(e)}function Rn(e){return JSON.stringify(e,(t,n)=>il(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function $o(e,t){return _h(e,t)}function _h(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!_h(e[n],t[n])):!1}function Rh(e,t){if(e===t)return e;const n=af(e)&&af(t);if(n||il(e)&&il(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let l=0;l<o;l++){const u=n?l:i[l];s[u]=Rh(e[u],t[u]),s[u]===e[u]&&a++}return r===o&&a===r?e:s}return t}function sf(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function af(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function il(e){if(!lf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!lf(n)||!n.hasOwnProperty("isPrototypeOf"))}function lf(e){return Object.prototype.toString.call(e)==="[object Object]"}function gs(e){return Array.isArray(e)}function Nh(e){return new Promise(t=>{setTimeout(t,e)})}function uf(e){Nh(0).then(e)}function oy(){if(typeof AbortController=="function")return new AbortController}function ol(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Rh(e,t):t}class sy extends Ri{constructor(){super(),this.setup=t=>{if(!mi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Uo=new sy;class ay extends Ri{constructor(){super(),this.setup=t=>{if(!mi&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(
2022-09-14 16:48:46 +02:00
* react-query-devtools-noop
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-30 18:29:42 +02:00
*/function Ry(){return null}function et(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xr(e){return!!e&&!!e[Q]}function Vt(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===Ay}(e)||Array.isArray(e)||!!e[wf]||!!e.constructor[wf]||wu(e)||xu(e))}function Pr(e,t,n){n===void 0&&(n=!1),Rr(e)===0?(n?Object.keys:Cu)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Rr(e){var t=e[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wu(e)?2:xu(e)?3:0}function al(e,t){return Rr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ny(e,t){return Rr(e)===2?e.get(t):e[t]}function jh(e,t,n){var r=Rr(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function by(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wu(e){return My&&e instanceof Map}function xu(e){return jy&&e instanceof Set}function le(e){return e.o||e.t}function Pu(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$y(e);delete t[Q];for(var n=Cu(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ou(e,t){return t===void 0&&(t=!1),ku(e)||xr(e)||!Vt(e)||(Rr(e)>1&&(e.set=e.add=e.clear=e.delete=Iy),Object.freeze(e),t&&Pr(e,function(n,r){return Ou(r,!0)},!0)),e}function Iy(){et(2)}function ku(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function bt(e){var t=ul[e];return t||et(18,e),t}function Ty(e,t){ul[e]||(ul[e]=t)}function Bo(){return yi}function Zs(e,t){t&&(bt("Patches"),e.u=[],e.s=[],e.v=t)}function Qo(e){ll(e),e.p.forEach(Ly),e.p=null}function ll(e){e===yi&&(yi=e.l)}function hf(e){return yi={p:[],l:yi,h:e,m:!0,_:0}}function Ly(e){var t=e[Q];t.i===0||t.i===1?t.j():t.O=!0}function ea(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||bt("ES5").S(t,e,r),r?(n[Q].P&&(Qo(t),et(4)),Vt(e)&&(e=Ho(t,e),t.l||Vo(t,e)),t.u&&bt("Patches").M(n[Q].t,e,t.u,t.s)):e=Ho(t,n,[]),Qo(t),t.u&&t.v(t.u,t.s),e!==Ah?e:void 0}function Ho(e,t,n){if(ku(t))return t;var r=t[Q];if(!r)return Pr(t,function(o,s){return gf(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vo(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Pu(r.k):r.o;Pr(r.i===3?new Set(i):i,function(o,s){return gf(e,r,i,o,s,n)}),Vo(e,i,!1),n&&e.u&&bt("Patches").R(r,n,e.u,e.s)}return r.o}function gf(e,t,n,r,i,o){if(xr(i)){var s=Ho(e,i,o&&t&&t.i!==3&&!al(t.D,r)?o.concat(r):void 0);if(jh(n,r,s),!xr(s))return;e.m=!1}if(Vt(i)&&!ku(i)){if(!e.h.F&&e._<1)return;Ho(e,i),t&&t.A.l||Vo(e,i)}}function Vo(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Ou(t,n)}function ta(e,t){var n=e[Q];return(n?le(n):e)[t]}function mf(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function jt(e){e.P||(e.P=!0,e.l&&jt(e.l))}function na(e){e.o||(e.o=Pu(e.t))}function vi(e,t,n){var r=wu(t)?bt("MapSet").N(t,n):xu(t)?bt("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Bo(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,u=cl;s&&(l=[a],u=Br);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return a.k=d,a.j=f,d}(t,n):bt("ES5").J(t,n);return(n?n.A:Bo()).p.push(r),r}function Dy(e){return xr(e)||et(22,e),function t(n){if(!Vt(n))return n;var r,i=n[Q],o=Rr(n);if(i){if(!i.P&&(i.i<4||!bt("ES5").K(i)))return i.t;i.I=!0,r=vf(n,o),i.I=!1}else r=vf(n,o);return Pr(r,function(s,a){i&&Ny(i.t,s)===a||jh(r,s,t(a))}),o===3?new Set(r):r}(e)}function vf(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pu(e)}function Fy(){function e(a,l){fun
2022-09-15 22:36:08 +02:00
* react-location
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-30 18:29:42 +02:00
*/function pt(){return pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(this,arguments)}function pl(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}function Hy(e,t){var n,r,i,o="";for(n in e)if((i=e[n])!==void 0)if(Array.isArray(i))for(r=0;r<i.length;r++)o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i[r]);else o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i);return(t||"")+o}function kf(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function Vy(e){for(var t,n,r={},i=e.split("&");t=i.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],kf(t.shift())):r[n]=kf(t.shift());return r}const qy=["children","location","__experimental__snapshot"],Ky=["location","__experimental__snapshot"],Wy=["basepath","routes"],Uh=_.exports.createContext(null),zh=_.exports.createContext(null),Bh=_.exports.createContext(null),Qh=Boolean(typeof window<"u"&&window.document&&window.document.createElement),hl=Qh?_.exports.useLayoutEffect:_.exports.useEffect,Gy=()=>Qh?By():Qy();class _u{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class Yy extends _u{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||Gy(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:u0,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:l0,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(i=>{this.current=this.parseLocation(i.location,this.current),this.notify()})}buildNext(t,n){var r,i,o,s;t===void 0&&(t="/"),n===void 0&&(n={});const a=pt({},this.current,n.from),l=a0(t,a.pathname,""+((r=n.to)!=null?r:".")),u=(i=n.__searchFilters)!=null&&i.length?n.__searchFilters.reduce((g,y)=>y(g),a.search):a.search,c=n.search===!0?u:n.search?(o=_f(n.search,u))!=null?o:{}:(s=n.__searchFilters)!=null&&s.length?u:{},f=gl(a.search,c),d=this.stringifySearch(f);let h=n.hash===!0?a.hash:_f(n.hash,a.hash);return h=h?"#"+h:"",{pathname:l,search:f,searchStr:d,hash:h,href:""+l+d+h,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const i=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:gl(n==null?void 0:n.search,i),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function Hh(e){return w(zh.Provider,{...e})}function Jy(e){let{children:t,location:n,__experimental__snapshot:r}=e,i=pl(e,qy);const o=_.exports.useRef(null);o.current||(o.current=new Zy({location:n,__experimental__snapshot:r,routes:i.routes}));const s=o.current,[a,l]=_.exports.useReducer(()=>({}),{});return s.update(i),hl(()=>s.subscribe(()=>{l()}),[]),hl(()=>s.updateLocation(n.current).unsubscribe,[n.current.key]),_.exports.createElement(Uh.Provider,{value:{location:n}},_.exports.createElement(Bh.Provider,{value:{router:s}},w(Xy,{}),w(Hh,{value:[s.rootMatch,...s.state.matches],children:t!=null?t:w(Yh,{})})))}function Xy(){const e=Ru(),t=Gh(),n=n0();return hl(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class Zy extends _u{constructor(t){var n;let{location:r,__experimental__snapshot:i}=t,o=pl(t,Ky);super(),this.routesById={},this.update=a=>{let{basepath:l,routes:u}=a,c=pl(a,Wy);Object.assign(this,c),this.basepath=vs("/"+(l!=null?l:"")),this.rout
2022-09-14 16:48:46 +02:00
* @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.
2022-09-30 18:29:42 +02:00
*/var ys=_.exports,C0=mu.exports;function _0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var R0=typeof Object.is=="function"?Object.is:_0,N0=C0.useSyncExternalStore,b0=ys.useRef,I0=ys.useEffect,T0=ys.useMemo,L0=ys.useDebugValue;ng.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=b0(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=T0(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&s.hasValue){var g=s.value;if(i(g,h))return f=g}return f=h}if(g=f,R0(c,h))return g;var y=r(h);return i!==void 0&&i(g,y)?g:(c=h,f=y)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,i]);var a=N0(e,o[0],o[1]);return I0(function(){s.hasValue=!0,s.value=a},[a]),L0(a),a};(function(e){e.exports=ng})(tg);const D0=hd(tg.exports),{useSyncExternalStoreWithSelector:F0}=D0;function M0(e,t=e.getState,n){const r=F0(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return _.exports.useDebugValue(r),r}const If=e=>{const t=typeof e=="function"?E0(e):e,n=(r,i)=>M0(t,r,i);return Object.assign(n,t),n},j0=e=>e?If(e):If;var Ni=j0;const A0=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:s,...a}=t;let l;try{l=(o!=null?o:({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const u=l.connect(a);let c=!0;i.setState=(h,g,y)=>{const x=n(h,g);return c&&u.send(y===void 0?{type:s||"anonymous"}:typeof y=="string"?{type:y}:y,r()),x};const f=(...h)=>{const g=c;c=!1,n(...h),c=g},d=e(i.setState,r,i);if(u.init(d),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let h=!1;const g=i.dispatch;i.dispatch=(...y)=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&y[0].type==="__setState"&&!h&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),h=!0),g(...y)}}return u.subscribe(h=>{var g;switch(h.type){case"ACTION":if(typeof h.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return ra(h.payload,y=>{if(y.type==="__setState"){f(y.state);return}!i.dispatchFromDevtools||typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(h.payload.type){case"RESET":return f(d),u.init(i.getState());case"COMMIT":return u.init(i.getState());case"ROLLBACK":return ra(h.state,y=>{f(y),u.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ra(h.state,y=>{f(y)});case"IMPORT_STATE":{const{nextLiftedState:y}=h.payload,x=(g=y.computedStates.slice(-1)[0])==null?void 0:g.state;if(!x)return;f(x),u.send(null,y);return}case"PAUSE_RECORDING":return c=!c}return}}),d},$0=A0,ra=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},Wo=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Wo(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Wo(r)(n)}}}},U0=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:x=>x,version:0,merge:(x,v)=>({...v,...x}),...t},s=!1;const a=new Set,l=new Set;let u;try{u=o.getStorage()}catch{}if(!u)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...x)},r,i);const c=Wo(o.serialize),f=()=>{const x=o.partialize({...r()});let v;const p=c({state:x,version:o.version}).then(m=>u.setItem(o.name,m)).catch(m=>{v=m});if(v)throw v;return p},d=i.setState;i.setState=(x,v)=>{d(x,v),f()};const h=e((...x)=>{n(...x),f()},r,i);let g;const y=()=>{var x;if(!u)return;s=!1,a.forEach(p=>p(r()));const v=((x=o.onRehydrateStorage)==null?void 0:x.call(o,r()))||void 0;return Wo(u.getItem.bind(u))(o.name).then(p=>{if(p)return o.deseria
2022-09-28 18:19:44 +02:00
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(`
`)].join(`
2022-09-30 18:29:42 +02:00
`));return _.exports.cloneElement(u,Object.assign({},lg(u.props,$f(sa(a,["ref"]))),c,l,r1(u.ref,l.ref)))}return _.exports.createElement(i,Object.assign({},sa(a,["ref"]),i!==_.exports.Fragment&&l,i!==_.exports.Fragment&&c),u)}function r1(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function lg(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function St(e){var t;return Object.assign(_.exports.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $f(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function sa(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function ug(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&i1(n)?!1:r}function i1(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let o1="div";var wi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(wi||{});let xi=St(function(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return yt({ourProps:i,theirProps:r,slot:{},defaultTag:o1,name:"Hidden"})}),Tu=_.exports.createContext(null);Tu.displayName="OpenClosedContext";var Pi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Pi||{});function cg(){return _.exports.useContext(Tu)}function s1({value:e,children:t}){return ge.createElement(Tu.Provider,{value:e},t)}var ue=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ue||{});function a1(e,t,n){let r=Tn(t);_.exports.useEffect(()=>{function i(o){r.current(o)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}var Nn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Nn||{});function fg(){let e=_.exports.useRef(0);return a1("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Lu(...e){return _.exports.useMemo(()=>bu(...e),[...e])}function l1(e,t,n,r){let i=Tn(n);_.exports.useEffect(()=>{e=e!=null?e:window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}var u1=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(u1||{}),c1=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(c1||{});let f1={[0]:e=>({...e,popoverState:gt(e.popoverState,{[0]:1,[1]:0})}),[1](e){return e.popoverState===1?e:{...e,popoverState:1}},[2](e,t){return e.button===t.button?e:{...e,button:t.button}},[3](e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},[4](e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},[5](e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},Du=_.exports.createContext(null);Du.displayName="PopoverContext";function Ss(e){let t=_.exports.useContext(Du);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ss),n}return t}let F
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iS(e,t){return yg(e)||rS(e,t)||Sg(e,t)||wg()}function qf(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 aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qf(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oS=function(t,n){var r=_.exports.useRef();return _.exports.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function Kt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=_.exports.useContext(K1)||{},i=r.i18n,o=r.defaultNS,s=n||i||X1();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Y1),!s){wl("You will need to pass in an i18next instance by using initReactI18next");var a=function(P){return Array.isArray(P)?P[P.length-1]:P},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&wl("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=aa(aa(aa({},G1()),s.options.react),t),c=u.useSuspense,f=u.keyPrefix,d=e||o||s.options&&s.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);var h=(s.isInitialized||s.initializedStoreOnce)&&d.every(function(R){return nS(R,s,u)});function g(){return s.getFixedT(null,u.nsMode==="fallback"?d:d[0],f)}var y=_.exports.useState(g),x=iS(y,2),v=x[0],p=x[1],m=d.join(),S=oS(m),k=_.exports.useRef(!0);_.exports.useEffect(function(){var R=u.bindI18n,P=u.bindI18nStore;k.current=!0,!h&&!c&&Hf(s,d,function(){k.current&&p(g)}),h&&S&&S!==m&&k.current&&p(g);function E(){k.current&&p(g)}return R&&s&&s.on(R,E),P&&s&&s.store.on(P,E),function(){k.current=!1,R&&s&&R.split(" ").forEach(function(T){return s.off(T,E)}),P&&s&&P.split(" ").forEach(function(T){return s.store.off(T,E)})}},[s,m]);var O=_.exports.useRef(!0);_.exports.useEffect(function(){k.current&&!O.current&&p(g),O.current=!1},[s,f]);var C=[v,s,h];if(C.t=v,C.i18n=s,C.ready=h,h||!h&&!c)return C;throw new Promise(function(R){Hf(s,d,function(){R()})})}function sS(){const{t:e}=Kt(),[t,n]=_.exports.useState(!1),[r,i]=_.exports.useState("beta"),{status:o,data:s}=wr([ml],Zh),a=Fh(),{status:l,data:u}=wr([x0],async()=>await P0(r),{enabled:t});return _.exports.useEffect(()=>{if(o==="success"){const{update_branch:c}=s;i(c==="main"?"beta":"main")}},[o,s]),_.exports.useEffect(()=>{l==="success"&&(u[0]==="OK"&&a.invalidateQueries([ml]),n(!1))},[l,u,n]),N("label",{children:[w("input",{type:"checkbox",checked:r==="main",onChange:c=>{n(!0)}}),"\u{1F525}",e("advanced-settings.beta")," ",e("advanced-settings.beta-disc")]})}var aS="cg4q680";function lS(){const{t:e}=Kt(),t=F(c=>c.isUseAutoSave()),n=F(c=>c.getValueForRequestKey("save_to_disk_path")),r=F(c=>c.getValueForRequestKey("turbo")),i=F(c=>c.getValueForRequestKey("use_cpu")),o=F(c=>c.getValueForRequestKey("use_full_precision")),s=F(c=>c.isSoundEnabled()),a=F(c=>c.setRequestOptions),l=F(c=>c.toggleUseAutoSave),u=F(c=>c.toggleSoundEnabled);return N(fr,{className:hg,children:[N(fr.Button,{className:pg,children:[w("i",{className:[qn,"fa-solid","fa-gear"].join(" ")}),"Settings"]}),w(fr.Panel,{className:gg,children:N("div",{className:aS,children:[w("h4",{children:"System Settings"}),N("ul",{children:[N("li",{className:te,children:[N("label",{children:[w("input",{checked:t,onChange:c=>l(),type:"checkbox"}),e("storage.ast")," "]}),N("label",{children:[w("input",{value:n,onChange:c=>a("save_to_disk_path",c.target.value),size:40,disabled:!t}),w("span",{className:"visually-hidden",children:"Path on disk where images will be saved"})]})]}),w("li",{className:te,children:N("label",{children:[w("input",{che
2022-09-19 03:57:17 +02:00
Please feel free to join the discord community or file an issue if you have any problems or suggestions in using this interface.
Disclaimer: The authors of this project are not responsible for any content generated using this interface.
This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm,
spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.
By using this software, you consent to the terms and conditions of the license.
2022-09-30 18:29:42 +02:00
`,Rx={title:yx,description:Sx,navbar:wx,"land-cre":{cp:"Create Profile","cp-place":"Profile name",pp:"Profile Picture","pp-disc":"",ast:"Automatically save to","ast-disc":"File path to auto save your creations",place:"File path",cre:"Create"},"land-pre":{user:"Username",add:"Add Profile"},home:xx,"in-paint":{txt:"In-Painting (select the area which the AI will paint into)",clear:"Clear"},settings:Px,tags:Ox,"preview-prompt":{part1:'Type a prompt and press the "Make Image" button.',part2:`You can set an "Initial Image" if you want to guide the AI.
2022-09-19 03:57:17 +02:00
`,part3:`You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.
2022-09-30 18:29:42 +02:00
`,part4:'Click "Advanced Settings" for additional settings like seed, image size, number of images to generate etc.',part5:"Enjoy! :)"},"current-task":"Current task","recent-create":"Recently Created",popup:kx,history:Ex,"advanced-settings":{sound:"Play sound on task completion","sound-disc":"Will play a sound so user can hear when image is done.",turbo:"Turbo mode","turbo-disc":"Generates images faster, but uses an additional 1 GB of GPU memory",cpu:"Use CPU instead of GPU","cpu-disc":"Warning: this will be *very* slow",gpu:"Use full precision","gpu-disc":"(for GPU-only. warning: this will consume more VRAM)",beta:"Beta Features","beta-disc":`Get the latest features immediately (but could be less stable).
Please restart the program after changing this.`,save:"SAVE"},storage:Cx,import:{"imp-btn":"IMPORT","exp-btn":"EXPORT",disc:"It is a good idea to leave the exported file as it is. Otherwise it may not import correctly","disc:2":"When importing, only profiles that are not already present on the will be added."},about:_x},Nx="Stable Diffusion UI",bx="",Ix={home:"Home",history:"History",community:"Community",settings:"Settings"},Tx={"status-starting":"Stable Diffusion is starting...","status-ready":"Stable Diffusion is ready to use!","status-error":"Stable Diffusion is not running!","editor-title":"Prompt","initial-img-txt":"Initial Image: (optional)","initial-img-btn":"Browse...","initial-img-text2":"No file selected.","make-img-btn":"Make Image","make-img-btn-stop":"Stop"},Lx={"base-img":"Use base image:",seed:"Seed:","amount-of-img":"Amount of images to make:","how-many":"How many at once:",width:"Width:",height:"Height:",steps:"Number of inference steps:","guide-scale":"Guidance Scale:","prompt-str":"Prompt Strength:","live-preview":"Show a live preview of the image (disable this for faster image generation)","fix-face":"Fix incorrect faces and eyes (uses GFPGAN)",ups:"Upscale the image to 4x resolution using:","no-ups":"No Upscaling",corrected:"Show only the corrected/upscaled image"},Dx={txt:"Image Modifiers (art styles, tags etc)"},Fx={"use-btn":"Use Image","use-btn2":"Use Image and Tags"},Mx={fave:"Favorites Only",search:"Search"},jx={ast:"Automatically save to","ast-disc":"File path to auto save your creations",place:"File path",cps:"Cross profile sharing","cps-disc":"Profiles will see suggestions from each other.",acb:"Allow cloud backup","acb-disc":"A button will show up for images on hover","acb-place":"Choose your","acc-api":"Api key","acb-api-place":"Your API key",save:"SAVE"},Ax=`If you found this project useful and want to help keep it alive, please to help cover the cost of development and maintenance! Thank you for your support!
2022-09-20 03:39:44 +02:00
Please feel free to join the discord community or file an issue if you have any problems or suggestions in using this interface.
Disclaimer: The authors of this project are not responsible for any content generated using this interface.
This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm,
spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.
By using this software, you consent to the terms and conditions of the license.
2022-09-30 18:29:42 +02:00
`,$x={title:Nx,description:bx,navbar:Ix,"land-cre":{cp:"Create Profile","cp-place":"Profile name",pp:"Profile Picture","pp-disc":"",ast:"Automatically save to","ast-disc":"File path to auto save your creations",place:"File path",cre:"Create"},"land-pre":{user:"Username",add:"Add Profile"},home:Tx,"in-paint":{txt:"In-Painting (select the area which the AI will paint into)",clear:"Clear"},settings:Lx,tags:Dx,"preview-prompt":{part1:'Type a prompt and press the "Make Image" button.',part2:`You can set an "Initial Image" if you want to guide the AI.
2022-09-20 03:39:44 +02:00
`,part3:`You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.
2022-09-30 18:29:42 +02:00
`,part4:'Click "Advanced Settings" for additional settings like seed, image size, number of images to generate etc.',part5:"Enjoy! :)"},"current-task":"Current task","recent-create":"Recently Created",popup:Fx,history:Mx,"advanced-settings":{sound:"Play sound on task completion","sound-disc":"Will play a sound so user can hear when image is done.",turbo:"Turbo mode","turbo-disc":"Generates images faster, but uses an additional 1 GB of GPU memory",cpu:"Use CPU instead of GPU","cpu-disc":"Warning: this will be *very* slow",gpu:"Use full precision","gpu-disc":"(for GPU-only. warning: this will consume more VRAM)",beta:"Beta Features","beta-disc":`Get the latest features immediately (but could be less stable).
Please restart the program after changing this.`,save:"SAVE"},storage:jx,import:{"imp-btn":"IMPORT","exp-btn":"EXPORT",disc:"It is a good idea to leave the exported file as it is. Otherwise it may not import correctly","disc:2":"When importing, only profiles that are not already present on the will be added."},about:Ax},Ux={en:{translation:Rx},es:{translation:$x}};Ie.use(Z1).init({lng:"en",interpolation:{escapeValue:!1},resources:Ux}).then(()=>{console.log("i18n initialized")}).catch(e=>{console.error("i18n initialization failed",e)}).finally(()=>{console.log("i18n initialization finished")});const zx=new Yy;function Bx(){const e=$w;return w(Jy,{location:zx,routes:[{path:"/",element:w(jw,{className:e})},{path:"/settings",element:w(Aw,{className:e})}]})}const Qx=new yy({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:1/0,cacheTime:1/0}}});Fy();ca.createRoot(document.getElementById("root")).render(w(ge.StrictMode,{children:N(xy,{client:Qx,children:[w(Bx,{}),w(Ry,{initialIsOpen:!0})]})}));