easydiffusion/ui/frontend/dist/index.js

98 lines
298 KiB
JavaScript
Raw Normal View History

2022-09-19 19:40:17 +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 gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E={exports:{}},M={};/**
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-19 19:40:17 +02:00
*/var Zr=Symbol.for("react.element"),ph=Symbol.for("react.portal"),hh=Symbol.for("react.fragment"),gh=Symbol.for("react.strict_mode"),vh=Symbol.for("react.profiler"),mh=Symbol.for("react.provider"),yh=Symbol.for("react.context"),Sh=Symbol.for("react.forward_ref"),wh=Symbol.for("react.suspense"),kh=Symbol.for("react.memo"),Oh=Symbol.for("react.lazy"),eu=Symbol.iterator;function xh(e){return e===null||typeof e!="object"?null:(e=eu&&e[eu]||e["@@iterator"],typeof e=="function"?e:null)}var vf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mf=Object.assign,yf={};function tr(e,t,n){this.props=e,this.context=t,this.refs=yf,this.updater=n||vf}tr.prototype.isReactComponent={};tr.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")};tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sf(){}Sf.prototype=tr.prototype;function $a(e,t,n){this.props=e,this.context=t,this.refs=yf,this.updater=n||vf}var Ba=$a.prototype=new Sf;Ba.constructor=$a;mf(Ba,tr.prototype);Ba.isPureReactComponent=!0;var tu=Array.isArray,wf=Object.prototype.hasOwnProperty,Qa={current:null},kf={key:!0,ref:!0,__self:!0,__source:!0};function Of(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)wf.call(t,r)&&!kf.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:Zr,type:e,key:o,ref:s,props:i,_owner:Qa.current}}function _h(e,t){return{$$typeof:Zr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Va(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zr}function Ph(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var nu=/\/+/g;function Jo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ph(""+e.key):t.toString(36)}function Ei(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 Zr:case ph:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Jo(s,0):r,tu(i)?(n="",e!=null&&(n=e.replace(nu,"$&/")+"/"),Ei(i,t,n,"",function(u){return u})):i!=null&&(Va(i)&&(i=_h(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(nu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",tu(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Jo(o,a);s+=Ei(o,t,n,l,i)}else if(l=xh(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Jo(o,a++),s+=Ei(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 si(e,t,n){if(e==null)return e;var r=[],i=0;return Ei(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Ch(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 Se={current:null},Ri={transition:null},Eh={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:Ri,ReactCurrentOwner:Qa};M.Children={map:si,forEach:function(e,t,n){si(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return si(e,function(){t++}),t},toArray:function(e){return si(e,function(t){return t})||[]},only:function(e){if(!Va(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=tr;M.Fragment=hh;M.Profiler=vh;M.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-19 19:40:17 +02:00
*/(function(e){function t(I,j){var T=I.length;I.push(j);e:for(;0<T;){var $=T-1>>>1,J=I[$];if(0<i(J,j))I[$]=j,I[T]=J,T=$;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var j=I[0],T=I.pop();if(T!==j){I[0]=T;e:for(var $=0,J=I.length,wn=J>>>1;$<wn;){var Ne=2*($+1)-1,kn=I[Ne],Ie=Ne+1,vt=I[Ie];if(0>i(kn,T))Ie<J&&0>i(vt,kn)?(I[$]=vt,I[Ie]=T,$=Ie):(I[$]=kn,I[Ne]=T,$=Ne);else if(Ie<J&&0>i(vt,T))I[$]=vt,I[Ie]=T,$=Ie;else break e}}return j}function i(I,j){var T=I.sortIndex-j.sortIndex;return T!==0?T:I.id-j.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,m=!1,y=!1,w=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 g(I){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=I)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function S(I){if(y=!1,g(I),!m)if(n(l)!==null)m=!0,Nt(P);else{var j=n(u);j!==null&&gt(S,j.startTime-I)}}function P(I,j){m=!1,y&&(y=!1,v(O),O=-1),h=!0;var T=d;try{for(g(j),f=n(l);f!==null&&(!(f.expirationTime>j)||I&&!b());){var $=f.callback;if(typeof $=="function"){f.callback=null,d=f.priorityLevel;var J=$(f.expirationTime<=j);j=e.unstable_now(),typeof J=="function"?f.callback=J:f===n(l)&&r(l),g(j)}else r(l);f=n(l)}if(f!==null)var wn=!0;else{var Ne=n(u);Ne!==null&&gt(S,Ne.startTime-j),wn=!1}return wn}finally{f=null,d=T,h=!1}}var _=!1,x=null,O=-1,R=5,D=-1;function b(){return!(e.unstable_now()-D<R)}function ne(){if(x!==null){var I=e.unstable_now();D=I;var j=!0;try{j=x(!0,I)}finally{j?Re():(_=!1,x=null)}}else _=!1}var Re;if(typeof p=="function")Re=function(){p(ne)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,or=Oe.port2;Oe.port1.onmessage=ne,Re=function(){or.postMessage(null)}}else Re=function(){w(ne,0)};function Nt(I){x=I,_||(_=!0,Re())}function gt(I,j){O=w(function(){I(e.unstable_now())},j)}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(){m||h||(m=!0,Nt(P))},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"):R=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 j=3;break;default:j=d}var T=d;d=j;try{return I()}finally{d=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,j){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var T=d;d=I;try{return j()}finally{d=T}},e.unstable_scheduleCallback=function(I,j,T){var $=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?$+T:$):T=$,I){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=T+J,I={id:c++,callback:j,priorityLevel:I,startTime:T,expirationTime:J,sortIndex:-1},T>$?(I.sortIndex=T,t(u,I),n(l)===null&&I===n(u)&&(y?(v(O),O=-1):y=!0,gt(S,T-$))):(I.sortIndex=J,t(l,I),m||h||(m=!0,Nt(P))),I},e.unstable_shouldYield=b,e.unstable_wrapCallback=function(I){var j=d;return function(){var T=d;d=j;try{return I.apply(this,arguments)}finally{d=T}}}})(Cf);(function(e){e.exports=Cf})(Pf);/**
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-19 19:40:17 +02:00
*/var Ef=E.exports,je=Pf.exports;function C(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 Rf=new Set,Lr={};function mn(e,t){Qn(e,t),Qn(e+"Capture",t)}function Qn(e,t){for(Lr[e]=t,e=0;e<t.length;e++)Rf.add(t[e])}var xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=Object.prototype.hasOwnProperty,Rh=/^[: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]*$/,ru={},iu={};function Nh(e){return Ds.call(iu,e)?!0:Ds.call(ru,e)?!1:Rh.test(e)?iu[e]=!0:(ru[e]=!0,!1)}function Ih(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 Lh(e,t,n,r){if(t===null||typeof t>"u"||Ih(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 we(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 ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new we(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){ce[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ha=/[\-:]([a-z])/g;function Ka(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
`+Xo+e}var Zo=!1;function es(e,t){if(!e||Zo)return"";Zo=!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-19 19:40:17 +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{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Dh(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=es(e.type,!1),e;case 11:return e=es(e.type.render,!1),e;case 1:return e=es(e.type,!0),e;default:return""}}function Ms(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 Cn:return"Fragment";case Pn:return"Portal";case Fs:return"Profiler";case Wa:return"StrictMode";case js:return"Suspense";case Ts:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case If:return(e.displayName||"Context")+".Consumer";case Nf:return(e._context.displayName||"Context")+".Provider";case Ga:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ya:return t=e.displayName||null,t!==null?t:Ms(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return Ms(e(t))}catch{}}return null}function Fh(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 Ms(t);case 8:return t===Wa?"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 Gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jh(e){var t=Df(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 li(e){e._valueTracker||(e._valueTracker=jh(e))}function Ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Df(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $i(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 bs(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function su(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gt(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 jf(e,t){t=t.checked,t!=null&&qa(e,"checked",t,!1)}function As(e,t){jf(e,t);var n=Gt(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")?Us(e,t.type,n):t.hasOwnProperty("defaultValue")&&Us(e,t.type,Gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function au(e,t,n){if(t.hasOwnPropert
`).replace(Vg,"")}function vi(e,t,n){if(t=Iu(t),Iu(e)!==t&&n)throw Error(C(425))}function Gi(){}var Zs=null,ea=null;function ta(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 na=typeof setTimeout=="function"?setTimeout:void 0,Hg=typeof clearTimeout=="function"?clearTimeout:void 0,Lu=typeof Promise=="function"?Promise:void 0,Kg=typeof queueMicrotask=="function"?queueMicrotask:typeof Lu<"u"?function(e){return Lu.resolve(null).then(e).catch(qg)}:na;function qg(e){setTimeout(function(){throw e})}function ps(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),Mr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Mr(t)}function Bt(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 Du(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 rr=Math.random().toString(36).slice(2),at="__reactFiber$"+rr,$r="__reactProps$"+rr,_t="__reactContainer$"+rr,ra="__reactEvents$"+rr,Wg="__reactListeners$"+rr,Gg="__reactHandles$"+rr;function on(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_t]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Du(e);e!==null;){if(n=e[at])return n;e=Du(e)}return t}e=n,n=e.parentNode}return null}function ni(e){return e=e[at]||e[_t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function In(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Ro(e){return e[$r]||null}var ia=[],Ln=-1;function Zt(e){return{current:e}}function V(e){0>Ln||(e.current=ia[Ln],ia[Ln]=null,Ln--)}function B(e,t){Ln++,ia[Ln]=e.current,e.current=t}var Yt={},he=Zt(Yt),Pe=Zt(!1),fn=Yt;function Vn(e,t){var n=e.type.contextTypes;if(!n)return Yt;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 Ce(e){return e=e.childContextTypes,e!=null}function Yi(){V(Pe),V(he)}function Fu(e,t,n){if(he.current!==Yt)throw Error(C(168));B(he,t),B(Pe,n)}function Od(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(C(108,Fh(e)||"Unknown",i));return W({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,fn=he.current,B(he,e),B(Pe,Pe.current),!0}function ju(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Od(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,V(Pe),V(he),B(he,e)):V(Pe),B(Pe,n)}var yt=null,No=!1,hs=!1;function xd(e){yt===null?yt=[e]:yt.push(e)}function Yg(e){No=!0,xd(e)}function en(){if(!hs&&yt!==null){hs=!0;var e=0,t=z;try{var n=yt;for(z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yt=null,No=!1}catch(i){throw yt!==null&&(yt=yt.slice(e+1)),Wf(Xa,en),i}finally{z=t,hs=!1}}return null}var Dn=[],Fn=0,Xi=null,Zi=0,Ue=[],ze=0,dn=null,wt=1,kt="";function nn(e,t){Dn[Fn++]=Zi,Dn[Fn++]=Xi,Xi=e,Zi=t}function _d(e,t,n){Ue[ze++]=wt,Ue[ze++]=kt,Ue[ze++]=dn,dn=e;var r=wt;e=kt;var i=32-Xe(r)-1;r&=~(1<<i),n+=1;var o=32-Xe(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,wt=1<<32-Xe(t)+i|n<<i|r,kt=o+e}else wt=1<<o|n<<i|r,kt=e}function al(e){e.return!==null&&(nn(e,1),_d(e,1,0))}function ll(e){for(;e===Xi;)Xi=Dn[--Fn],Dn[Fn]=null,Zi=Dn[--Fn],Dn[Fn]=null;for(;e===dn;)dn=Ue[--ze],Ue[ze]=null,kt=Ue[--ze],Ue[ze]=null,wt=Ue[--ze],Ue[ze]=null}var Fe=null,De=null,H=!1,Je=null;function Pd(e,t){var n=Be(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-19 19:40:17 +02:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ss(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function ca(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ov=typeof WeakMap=="function"?WeakMap:Map;function Zd(e,t,n){n=Ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ao||(ao=!0,wa=r),ca(e,t)},n}function ep(e,t,n){n=Ot(-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(){ca(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ca(e,t),typeof r!="function"&&(Vt===null?Vt=new Set([this]):Vt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Vu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ov;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=Sv.bind(null,e,t,n),t.then(e,e))}function Hu(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 Ku(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=Ot(-1,1),t.tag=2,Qt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var sv=Rt.ReactCurrentOwner,_e=!1;function ve(e,t,n,r){t.child=e===null?Dd(t,null,n,r):Kn(t,e.child,n,r)}function qu(e,t,n,r,i){n=n.render;var o=t.ref;return $n(t,i),r=Sl(e,t,n,r,o,i),n=wl(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(H&&n&&al(t),t.flags|=1,ve(e,t,r,i),t.child)}function Wu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Il(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,tp(e,t,o,r,i)):(e=Ai(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:Ar,n(s,r)&&e.ref===t.ref)return Ct(e,t,i)}return t.flags|=1,e=Kt(o,r),e.ref=t.ref,e.return=t,t.child=e}function tp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ar(o,r)&&e.ref===t.ref)if(_e=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(_e=!0);else return t.lanes=e.lanes,Ct(e,t,i)}return fa(e,t,n,r,i)}function np(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},B(Mn,Le),Le|=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,B(Mn,Le),Le|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(Mn,Le),Le|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(Mn,Le),Le|=r;return ve(e,t,i,n),t.child}function rp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function fa(e,t,n,r,i){var o=Ce(n)?fn:he.current;return o=Vn(t,o),$n(t,i),n=Sl(e,t,n,r,o,i),r=wl(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ct(e,t,i)):(H&&r&&al(t),t.flags|=1,ve(e,t,n,i),t.child)}function Gu(e,t,n,r,i){if(Ce(n)){var o=!0;Ji(t)}else o=!1;if($n(t,i),t.stateNode===null)Ti(e,t),Id(t,n,r),ua(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=Ve(u):(u=Ce(n)?fn:he.current,u=Vn(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)&&zu(t,s,r,u),Ft=!1;var d=t.memoizedState;s.state=d,no(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Pe.current||Ft?(typeof c=="function"&&(la(t,n,c,r),l=t.memoizedState),(a=Ft||Uu(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-19 19:40:17 +02:00
*/var Yn=E.exports;function Iv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lv=typeof Object.is=="function"?Object.is:Iv,Dv=Yn.useState,Fv=Yn.useEffect,jv=Yn.useLayoutEffect,Tv=Yn.useDebugValue;function Mv(e,t){var n=t(),r=Dv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return jv(function(){i.value=n,i.getSnapshot=t,xs(i)&&o({inst:i})},[e,n,t]),Fv(function(){return xs(i)&&o({inst:i}),e(function(){xs(i)&&o({inst:i})})},[e]),Tv(n),n}function xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lv(e,n)}catch{return!0}}function bv(e,t){return t()}var Av=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bv:Mv;Cp.useSyncExternalStore=Yn.useSyncExternalStore!==void 0?Yn.useSyncExternalStore:Av;(function(e){e.exports=Cp})(Tl);var Uo={exports:{}},zo={};/**
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-19 19:40:17 +02:00
*/var Uv=E.exports,zv=Symbol.for("react.element"),$v=Symbol.for("react.fragment"),Bv=Object.prototype.hasOwnProperty,Qv=Uv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vv={key:!0,ref:!0,__self:!0,__source:!0};function Ep(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)Bv.call(t,r)&&!Vv.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:Qv.current}}zo.Fragment=$v;zo.jsx=Ep;zo.jsxs=Ep;(function(e){e.exports=zo})(Uo);const Sn=Uo.exports.Fragment,k=Uo.exports.jsx,N=Uo.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-19 19:40:17 +02:00
*/class ii{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 Wr=typeof window>"u";function Ae(){}function Hv(e,t){return typeof e=="function"?e(t):e}function _a(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ui(e,t,n){return $o(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function jt(e,t,n){return $o(e)?[{...t,queryKey:e},n]:[e||{},t]}function uc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if($o(s)){if(r){if(t.queryHash!==Ml(s,t.options))return!1}else if(!fo(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 cc(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if($o(o)){if(!t.options.mutationKey)return!1;if(n){if(ln(t.options.mutationKey)!==ln(o))return!1}else if(!fo(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Ml(e,t){return((t==null?void 0:t.queryKeyHashFn)||ln)(e)}function ln(e){return JSON.stringify(e,(t,n)=>Pa(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function fo(e,t){return Np(e,t)}function Np(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Np(e[n],t[n])):!1}function Ip(e,t){if(e===t)return e;const n=dc(e)&&dc(t);if(n||Pa(e)&&Pa(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]=Ip(e[u],t[u]),s[u]===e[u]&&a++}return r===o&&a===r?e:s}return t}function fc(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function dc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pa(e){if(!pc(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!pc(n)||!n.hasOwnProperty("isPrototypeOf"))}function pc(e){return Object.prototype.toString.call(e)==="[object Object]"}function $o(e){return Array.isArray(e)}function Lp(e){return new Promise(t=>{setTimeout(t,e)})}function hc(e){Lp(0).then(e)}function Kv(){if(typeof AbortController=="function")return new AbortController}function Ca(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ip(e,t):t}class qv extends ii{constructor(){super(),this.setup=t=>{if(!Wr&&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 po=new qv;class Wv extends ii{constructor(){super(),this.setup=t=>{if(!Wr&&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-19 19:40:17 +02:00
*/function gm(){return null}function $e(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 Jn(e){return!!e&&!!e[U]}function Et(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)===Pm}(e)||Array.isArray(e)||!!e[Pc]||!!e.constructor[Pc]||zl(e)||$l(e))}function Xn(e,t,n){n===void 0&&(n=!1),ir(e)===0?(n?Object.keys:Kl)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function ir(e){var t=e[U];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:zl(e)?2:$l(e)?3:0}function Ra(e,t){return ir(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vm(e,t){return ir(e)===2?e.get(t):e[t]}function Ap(e,t,n){var r=ir(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function mm(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function zl(e){return xm&&e instanceof Map}function $l(e){return _m&&e instanceof Set}function re(e){return e.o||e.t}function Bl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Cm(e);delete t[U];for(var n=Kl(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 Ql(e,t){return t===void 0&&(t=!1),Vl(e)||Jn(e)||!Et(e)||(ir(e)>1&&(e.set=e.add=e.clear=e.delete=ym),Object.freeze(e),t&&Xn(e,function(n,r){return Ql(r,!0)},!0)),e}function ym(){$e(2)}function Vl(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function dt(e){var t=Ia[e];return t||$e(18,e),t}function Sm(e,t){Ia[e]||(Ia[e]=t)}function go(){return Yr}function _s(e,t){t&&(dt("Patches"),e.u=[],e.s=[],e.v=t)}function vo(e){Na(e),e.p.forEach(wm),e.p=null}function Na(e){e===Yr&&(Yr=e.l)}function Sc(e){return Yr={p:[],l:Yr,h:e,m:!0,_:0}}function wm(e){var t=e[U];t.i===0||t.i===1?t.j():t.O=!0}function Ps(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||dt("ES5").S(t,e,r),r?(n[U].P&&(vo(t),$e(4)),Et(e)&&(e=mo(t,e),t.l||yo(t,e)),t.u&&dt("Patches").M(n[U].t,e,t.u,t.s)):e=mo(t,n,[]),vo(t),t.u&&t.v(t.u,t.s),e!==Up?e:void 0}function mo(e,t,n){if(Vl(t))return t;var r=t[U];if(!r)return Xn(t,function(o,s){return wc(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yo(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Bl(r.k):r.o;Xn(r.i===3?new Set(i):i,function(o,s){return wc(e,r,i,o,s,n)}),yo(e,i,!1),n&&e.u&&dt("Patches").R(r,n,e.u,e.s)}return r.o}function wc(e,t,n,r,i,o){if(Jn(i)){var s=mo(e,i,o&&t&&t.i!==3&&!Ra(t.D,r)?o.concat(r):void 0);if(Ap(n,r,s),!Jn(s))return;e.m=!1}if(Et(i)&&!Vl(i)){if(!e.h.F&&e._<1)return;mo(e,i),t&&t.A.l||yo(e,i)}}function yo(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Ql(t,n)}function Cs(e,t){var n=e[U];return(n?re(n):e)[t]}function kc(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 St(e){e.P||(e.P=!0,e.l&&St(e.l))}function Es(e){e.o||(e.o=Bl(e.t))}function Gr(e,t,n){var r=zl(t)?dt("MapSet").N(t,n):$l(t)?dt("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:go(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,u=La;s&&(l=[a],u=wr);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return a.k=d,a.j=f,d}(t,n):dt("ES5").J(t,n);return(n?n.A:go()).p.push(r),r}function km(e){return Jn(e)||$e(22,e),function t(n){if(!Et(n))return n;var r,i=n[U],o=ir(n);if(i){if(!i.P&&(i.i<4||!dt("ES5").K(i)))return i.t;i.I=!0,r=Oc(n,o),i.I=!1}else r=Oc(n,o);return Xn(r,function(s,a){i&&vm(i.t,s)===a||Ap(r,s,t(a))}),o===3?new Set(r):r}(e)}function Oc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Bl(e)}function Om(){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-19 19:40:17 +02:00
*/function et(){return et=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},et.apply(this,arguments)}function ja(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 Lm(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 Nc(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function Dm(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],Nc(t.shift())):r[n]=Nc(t.shift());return r}const Fm=["children","location","__experimental__snapshot"],jm=["location","__experimental__snapshot"],Tm=["basepath","routes"],$p=E.exports.createContext(null),Bp=E.exports.createContext(null),Qp=E.exports.createContext(null),Vp=Boolean(typeof window<"u"&&window.document&&window.document.createElement),Ta=Vp?E.exports.useLayoutEffect:E.exports.useEffect,Mm=()=>Vp?Nm():Im();class ql{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 bm extends ql{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||Mm(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:Ym,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:Gm,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=et({},this.current,n.from),l=Wm(t,a.pathname,""+((r=n.to)!=null?r:".")),u=(i=n.__searchFilters)!=null&&i.length?n.__searchFilters.reduce((m,y)=>y(m),a.search):a.search,c=n.search===!0?u:n.search?(o=Dc(n.search,u))!=null?o:{}:(s=n.__searchFilters)!=null&&s.length?u:{},f=Ma(a.search,c),d=this.stringifySearch(f);let h=n.hash===!0?a.hash:Dc(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:Ma(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 Hp(e){return k(Bp.Provider,{...e})}function Am(e){let{children:t,location:n,__experimental__snapshot:r}=e,i=ja(e,Fm);const o=E.exports.useRef(null);o.current||(o.current=new zm({location:n,__experimental__snapshot:r,routes:i.routes}));const s=o.current,[a,l]=E.exports.useReducer(()=>({}),{});return s.update(i),Ta(()=>s.subscribe(()=>{l()}),[]),Ta(()=>s.updateLocation(n.current).unsubscribe,[n.current.key]),E.exports.createElement($p.Provider,{value:{location:n}},E.exports.createElement(Qp.Provider,{value:{router:s}},k(Um,{}),k(Hp,{value:[s.rootMatch,...s.state.matches],children:t!=null?t:k(Jp,{})})))}function Um(){const e=Wl(),t=Yp(),n=Qm();return Ta(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class zm extends ql{constructor(t){var n;let{location:r,__experimental__snapshot:i}=t,o=ja(t,jm);super(),this.routesById={},this.update=a=>{let{basepath:l,routes:u}=a,c=ja(a,Tm);Object.assign(this,c),this.basepath=Qo("/"+(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-19 19:40:17 +02:00
*/var Vo=E.exports,py=Tl.exports;function hy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gy=typeof Object.is=="function"?Object.is:hy,vy=py.useSyncExternalStore,my=Vo.useRef,yy=Vo.useEffect,Sy=Vo.useMemo,wy=Vo.useDebugValue;nh.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=my(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Sy(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&s.hasValue){var m=s.value;if(i(m,h))return f=m}return f=h}if(m=f,gy(c,h))return m;var y=r(h);return i!==void 0&&i(m,y)?m:(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=vy(e,o[0],o[1]);return yy(function(){s.hasValue=!0,s.value=a},[a]),wy(a),a};(function(e){e.exports=nh})(th);const ky=gf(th.exports),{useSyncExternalStoreWithSelector:Oy}=ky;function xy(e,t=e.getState,n){const r=Oy(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return E.exports.useDebugValue(r),r}const bc=e=>{const t=typeof e=="function"?dy(e):e,n=(r,i)=>xy(t,r,i);return Object.assign(n,t),n},_y=e=>e?bc(e):bc;var Gl=_y;const Py=(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,m,y)=>{const w=n(h,m);return c&&u.send(y===void 0?{type:s||"anonymous"}:typeof y=="string"?{type:y}:y,r()),w};const f=(...h)=>{const m=c;c=!1,n(...h),c=m},d=e(i.setState,r,i);if(u.init(d),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let h=!1;const m=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),m(...y)}}return u.subscribe(h=>{var m;switch(h.type){case"ACTION":if(typeof h.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Rs(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 Rs(h.state,y=>{f(y),u.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Rs(h.state,y=>{f(y)});case"IMPORT_STATE":{const{nextLiftedState:y}=h.payload,w=(m=y.computedStates.slice(-1)[0])==null?void 0:m.state;if(!w)return;f(w),u.send(null,y);return}case"PAUSE_RECORDING":return c=!c}return}}),d},Cy=Py,Rs=(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)},ko=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return ko(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return ko(r)(n)}}}},Ey=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:w=>w,version:0,merge:(w,v)=>({...v,...w}),...t},s=!1;const a=new Set,l=new Set;let u;try{u=o.getStorage()}catch{}if(!u)return e((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...w)},r,i);const c=ko(o.serialize),f=()=>{const w=o.partialize({...r()});let v;const p=c({state:w,version:o.version}).then(g=>u.setItem(o.name,g)).catch(g=>{v=g});if(v)throw v;return p},d=i.setState;i.setState=(w,v)=>{d(w,v),f()};const h=e((...w)=>{n(...w),f()},r,i);let m;const y=()=>{var w;if(!u)return;s=!1,a.forEach(p=>p(r()));const v=((w=o.onRehydrateStorage)==null?void 0:w.call(o,r()))||void 0;return ko(u.getItem.bind(u))(o.name).then(p=>{if(p)return o.deseria
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qy(e,t){return ih(e)||Ky(e,t)||oh(e,t)||sh()}function Wc(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 Ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(r){ht(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Wy=function(t,n){var r=E.exports.useRef();return E.exports.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function ah(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=E.exports.useContext(My)||{},i=r.i18n,o=r.defaultNS,s=n||i||$y();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Uy),!s){Ua("You will need to pass in an i18next instance by using initReactI18next");var a=function(R){return Array.isArray(R)?R[R.length-1]:R},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&Ua("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=Ns(Ns(Ns({},Ay()),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(O){return Hy(O,s,u)});function m(){return s.getFixedT(null,u.nsMode==="fallback"?d:d[0],f)}var y=E.exports.useState(m),w=qy(y,2),v=w[0],p=w[1],g=d.join(),S=Wy(g),P=E.exports.useRef(!0);E.exports.useEffect(function(){var O=u.bindI18n,R=u.bindI18nStore;P.current=!0,!h&&!c&&Kc(s,d,function(){P.current&&p(m)}),h&&S&&S!==g&&P.current&&p(m);function D(){P.current&&p(m)}return O&&s&&s.on(O,D),R&&s&&s.store.on(R,D),function(){P.current=!1,O&&s&&O.split(" ").forEach(function(b){return s.off(b,D)}),R&&s&&R.split(" ").forEach(function(b){return s.store.off(b,D)})}},[s,g]);var _=E.exports.useRef(!0);E.exports.useEffect(function(){P.current&&!_.current&&p(m),_.current=!1},[s,f]);var x=[v,s,h];if(x.t=v,x.i18n=s,x.ready=h,h||!h&&!c)return x;throw new Promise(function(O){Kc(s,d,function(){O()})})}var Gy="_1v2cc580";function Yy(){const{t:e}=ah(),{status:t,data:n}=vn([ba],eh),[r,i]=E.exports.useState("2.1.0"),[o,s]=E.exports.useState("");return E.exports.useEffect(()=>{if(t==="success"){const{update_branch:a}=n;i("v2.1"),s(a==="main"?"(stable)":"(beta)")}},[t,n,i,i]),N("div",{className:Gy,children:[N("h1",{children:[e("title")," ",r," ",o," "]}),k(Ly,{className:"status-display"})]})}const Ke=Gl(Ry((e,t)=>({isOpenAdvancedSettings:!1,isOpenAdvImprovementSettings:!1,isOpenAdvPropertySettings:!1,isOpenAdvWorkflowSettings:!1,isOpenAdvGPUSettings:!1,isOpenImageModifier:!1,imageMofidiersMap:{},toggleAdvancedSettings:()=>{e(le(n=>{n.isOpenAdvancedSettings=!n.isOpenAdvancedSettings}))},toggleAdvImprovementSettings:()=>{e(le(n=>{n.isOpenAdvImprovementSettings=!n.isOpenAdvImprovementSettings}))},toggleAdvPropertySettings:()=>{e(le(n=>{n.isOpenAdvPropertySettings=!n.isOpenAdvPropertySettings}))},toggleAdvWorkflowSettings:()=>{e(le(n=>{n.isOpenAdvWorkflowSettings=!n.isOpenAdvWorkflowSettings}))},toggleAdvGPUSettings:()=>{e(le(n=>{n.isOpenAdvGPUSettings=!n.isOpenAdvGPUSettings}))},toggleImageModifier:()=>{e(le(n=>{n.isOpenImageModifier=!n.isOpenImageModifier}))}}),{name:"createUI"}));var lh="_1961rof0",me="_1961rof1";var hr="_11d5x3d1",Jy="_11d5x3d0",Ho="_11d5x3d2";function Xy(){const e=F(c=>c.isUsingFaceCorrection()),t=F(c=>c.isUsingUpscaling()),n=F(c=>c.getValueForRequestKey("use_upscale")),r=F(c=>c.getValueForRequestKey("show_only_filtered_image")),i=F(c=>c.toggleUseFaceCorrection),o=F(c=>c.setRequestOptions),s=Ke(c=>c.isOpenAdvImprovementSettings),a=Ke(c=>c.toggleAdvImprovementSettings),
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-19 19:40:17 +02:00
`,H1={title:T1,description:M1,navbar:b1,"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:A1,"in-paint":{txt:"In-Painting (select the area which the AI will paint into)",clear:"Clear"},settings:U1,tags:z1,"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-19 19:40:17 +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:$1,history:B1,"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",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:Q1,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:V1},K1={en:{translation:H1}};ke.use(By).init({lng:"en",interpolation:{escapeValue:!1},resources:K1});const q1=new bm;function W1(){const e=n1;return k(Am,{location:q1,routes:[{path:"/",element:k(e1,{className:e})},{path:"/settings",element:k(t1,{className:e})}]})}const G1=new om({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:1/0,cacheTime:1/0}}});Om();Ls.createRoot(document.getElementById("root")).render(k(xf.StrictMode,{children:N(lm,{client:G1,children:[k(W1,{}),k(gm,{initialIsOpen:!0})]})}));