easydiffusion/ui/frontend/dist/index.js

98 lines
298 KiB
JavaScript
Raw Normal View History

2022-09-19 03:57: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 hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E={exports:{}},b={};/**
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 03:57:17 +02:00
*/var Xr=Symbol.for("react.element"),fh=Symbol.for("react.portal"),dh=Symbol.for("react.fragment"),ph=Symbol.for("react.strict_mode"),hh=Symbol.for("react.profiler"),gh=Symbol.for("react.provider"),vh=Symbol.for("react.context"),mh=Symbol.for("react.forward_ref"),yh=Symbol.for("react.suspense"),Sh=Symbol.for("react.memo"),wh=Symbol.for("react.lazy"),Zl=Symbol.iterator;function kh(e){return e===null||typeof e!="object"?null:(e=Zl&&e[Zl]||e["@@iterator"],typeof e=="function"?e:null)}var gf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vf=Object.assign,mf={};function er(e,t,n){this.props=e,this.context=t,this.refs=mf,this.updater=n||gf}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 yf(){}yf.prototype=er.prototype;function za(e,t,n){this.props=e,this.context=t,this.refs=mf,this.updater=n||gf}var $a=za.prototype=new yf;$a.constructor=za;vf($a,er.prototype);$a.isPureReactComponent=!0;var eu=Array.isArray,Sf=Object.prototype.hasOwnProperty,Ba={current:null},wf={key:!0,ref:!0,__self:!0,__source:!0};function kf(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)Sf.call(t,r)&&!wf.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:Xr,type:e,key:o,ref:s,props:i,_owner:Ba.current}}function Oh(e,t){return{$$typeof:Xr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Qa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xr}function xh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tu=/\/+/g;function Yo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xh(""+e.key):t.toString(36)}function Ci(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 Xr:case fh:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Yo(s,0):r,eu(i)?(n="",e!=null&&(n=e.replace(tu,"$&/")+"/"),Ci(i,t,n,"",function(u){return u})):i!=null&&(Qa(i)&&(i=Oh(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(tu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",eu(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Yo(o,a);s+=Ci(o,t,n,l,i)}else if(l=kh(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Yo(o,a++),s+=Ci(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 oi(e,t,n){if(e==null)return e;var r=[],i=0;return Ci(e,r,"","",function(o){return t.call(n,o,i++)}),r}function _h(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 ye={current:null},Ei={transition:null},Ph={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:Ei,ReactCurrentOwner:Ba};b.Children={map:oi,forEach:function(e,t,n){oi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oi(e,function(){t++}),t},toArray:function(e){return oi(e,function(t){return t})||[]},only:function(e){if(!Qa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};b.Component=er;b.Fragment=dh;b.Profiler=hh;b.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 03:57:17 +02:00
*/(function(e){function t(I,F){var T=I.length;I.push(F);e:for(;0<T;){var $=T-1>>>1,J=I[$];if(0<i(J,F))I[$]=F,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 F=I[0],T=I.pop();if(T!==F){I[0]=T;e:for(var $=0,J=I.length,Sn=J>>>1;$<Sn;){var Re=2*($+1)-1,wn=I[Re],Ne=Re+1,gt=I[Ne];if(0>i(wn,T))Ne<J&&0>i(gt,wn)?(I[$]=gt,I[Ne]=T,$=Ne):(I[$]=wn,I[Re]=T,$=Re);else if(Ne<J&&0>i(gt,T))I[$]=gt,I[Ne]=T,$=Ne;else break e}}return F}function i(I,F){var T=I.sortIndex-F.sortIndex;return T!==0?T:I.id-F.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 F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=I)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function S(I){if(y=!1,g(I),!m)if(n(l)!==null)m=!0,Rt(P);else{var F=n(u);F!==null&&ht(S,F.startTime-I)}}function P(I,F){m=!1,y&&(y=!1,v(O),O=-1),h=!0;var T=d;try{for(g(F),f=n(l);f!==null&&(!(f.expirationTime>F)||I&&!M());){var $=f.callback;if(typeof $=="function"){f.callback=null,d=f.priorityLevel;var J=$(f.expirationTime<=F);F=e.unstable_now(),typeof J=="function"?f.callback=J:f===n(l)&&r(l),g(F)}else r(l);f=n(l)}if(f!==null)var Sn=!0;else{var Re=n(u);Re!==null&&ht(S,Re.startTime-F),Sn=!1}return Sn}finally{f=null,d=T,h=!1}}var _=!1,x=null,O=-1,R=5,D=-1;function M(){return!(e.unstable_now()-D<R)}function ne(){if(x!==null){var I=e.unstable_now();D=I;var F=!0;try{F=x(!0,I)}finally{F?Ee():(_=!1,x=null)}}else _=!1}var Ee;if(typeof p=="function")Ee=function(){p(ne)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,ir=ke.port2;ke.port1.onmessage=ne,Ee=function(){ir.postMessage(null)}}else Ee=function(){w(ne,0)};function Rt(I){x=I,_||(_=!0,Ee())}function ht(I,F){O=w(function(){I(e.unstable_now())},F)}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,Rt(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 F=3;break;default:F=d}var T=d;d=F;try{return I()}finally{d=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,F){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var T=d;d=I;try{return F()}finally{d=T}},e.unstable_scheduleCallback=function(I,F,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:F,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,ht(S,T-$))):(I.sortIndex=J,t(l,I),m||h||(m=!0,Rt(P))),I},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(I){var F=d;return function(){var T=d;d=F;try{return I.apply(this,arguments)}finally{d=T}}}})(Pf);(function(e){e.exports=Pf})(_f);/**
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 03:57:17 +02:00
*/var Cf=E.exports,je=_f.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 Ef=new Set,Ir={};function vn(e,t){Bn(e,t),Bn(e+"Capture",t)}function Bn(e,t){for(Ir[e]=t,e=0;e<t.length;e++)Ef.add(t[e])}var Ot=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ls=Object.prototype.hasOwnProperty,Ch=/^[: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]*$/,nu={},ru={};function Eh(e){return Ls.call(ru,e)?!0:Ls.call(nu,e)?!1:Ch.test(e)?ru[e]=!0:(nu[e]=!0,!1)}function Rh(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 Nh(e,t,n,r){if(t===null||typeof t>"u"||Rh(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 Se(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 Se(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 Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new Se(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 Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Va=/[\-:]([a-z])/g;function Ha(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
`+Jo+e}var Xo=!1;function Zo(e,t){if(!e||Xo)return"";Xo=!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=`
`+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{Xo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gr(e):""}function Ih(e){switch(e.tag){case 5:return gr(e.type);case 16:return gr("Lazy");case 13:return gr("Suspense");case 19:return gr("SuspenseList");case 0:case 2:case 15:return e=Zo(e.type,!1),e;case 11:return e=Zo(e.type.render,!1),e;case 1:return e=Zo(e.type,!0),e;default:return""}}function Ts(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 Pn:return"Fragment";case _n:return"Portal";case Ds:return"Profiler";case qa:return"StrictMode";case js:return"Suspense";case Fs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nf:return(e.displayName||"Context")+".Consumer";case Rf:return(e._context.displayName||"Context")+".Provider";case Wa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return t=e.displayName||null,t!==null?t:Ts(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return Ts(e(t))}catch{}}return null}function Lh(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 Ts(t);case 8:return t===qa?"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 Wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dh(e){var t=Lf(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 ai(e){e._valueTracker||(e._valueTracker=Dh(e))}function Df(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zi(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 ou(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wt(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&&Ka(e,"checked",t,!1)}function Ms(e,t){jf(e,t);var n=Wt(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")?As(e,t.type,n):t.hasOwnProperty("defaultValue")&&As(e,t.type,Wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(e,t,n){if(t.hasOwnPropert
`).replace(Bg,"")}function gi(e,t,n){if(t=Nu(t),Nu(e)!==t&&n)throw Error(C(425))}function Wi(){}var Xs=null,Zs=null;function ea(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 ta=typeof setTimeout=="function"?setTimeout:void 0,Qg=typeof clearTimeout=="function"?clearTimeout:void 0,Iu=typeof Promise=="function"?Promise:void 0,Vg=typeof queueMicrotask=="function"?queueMicrotask:typeof Iu<"u"?function(e){return Iu.resolve(null).then(e).catch(Hg)}:ta;function Hg(e){setTimeout(function(){throw e})}function ds(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),Tr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Tr(t)}function $t(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 Lu(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 nr=Math.random().toString(36).slice(2),st="__reactFiber$"+nr,zr="__reactProps$"+nr,xt="__reactContainer$"+nr,na="__reactEvents$"+nr,Kg="__reactListeners$"+nr,qg="__reactHandles$"+nr;function rn(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Lu(e);e!==null;){if(n=e[st])return n;e=Lu(e)}return t}e=n,n=e.parentNode}return null}function ti(e){return e=e[st]||e[xt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Nn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Eo(e){return e[zr]||null}var ra=[],In=-1;function Xt(e){return{current:e}}function V(e){0>In||(e.current=ra[In],ra[In]=null,In--)}function B(e,t){In++,ra[In]=e.current,e.current=t}var Gt={},he=Xt(Gt),_e=Xt(!1),cn=Gt;function Qn(e,t){var n=e.type.contextTypes;if(!n)return Gt;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 Pe(e){return e=e.childContextTypes,e!=null}function Gi(){V(_e),V(he)}function Du(e,t,n){if(he.current!==Gt)throw Error(C(168));B(he,t),B(_e,n)}function kd(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,Lh(e)||"Unknown",i));return W({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,cn=he.current,B(he,e),B(_e,_e.current),!0}function ju(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=kd(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,V(_e),V(he),B(he,e)):V(_e),B(_e,n)}var mt=null,Ro=!1,ps=!1;function Od(e){mt===null?mt=[e]:mt.push(e)}function Wg(e){Ro=!0,Od(e)}function Zt(){if(!ps&&mt!==null){ps=!0;var e=0,t=z;try{var n=mt;for(z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,Ro=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),qf(Ja,Zt),i}finally{z=t,ps=!1}}return null}var Ln=[],Dn=0,Ji=null,Xi=0,Ae=[],Ue=0,fn=null,St=1,wt="";function tn(e,t){Ln[Dn++]=Xi,Ln[Dn++]=Ji,Ji=e,Xi=t}function xd(e,t,n){Ae[Ue++]=St,Ae[Ue++]=wt,Ae[Ue++]=fn,fn=e;var r=St;e=wt;var i=32-Je(r)-1;r&=~(1<<i),n+=1;var o=32-Je(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,St=1<<32-Je(t)+i|n<<i|r,wt=o+e}else St=1<<o|n<<i|r,wt=e}function sl(e){e.return!==null&&(tn(e,1),xd(e,1,0))}function al(e){for(;e===Ji;)Ji=Ln[--Dn],Ln[Dn]=null,Xi=Ln[--Dn],Ln[Dn]=null;for(;e===fn;)fn=Ae[--Ue],Ae[Ue]=null,wt=Ae[--Ue],Ae[Ue]=null,St=Ae[--Ue],Ae[Ue]=null}var De=null,Le=null,H=!1,Ye=null;function _d(e,t){var n=$e(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 03:57:17 +02:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ys(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function ua(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rv=typeof WeakMap=="function"?WeakMap:Map;function Xd(e,t,n){n=kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){so||(so=!0,Sa=r),ua(e,t)},n}function Zd(e,t,n){n=kt(-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(){ua(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ua(e,t),typeof r!="function"&&(Qt===null?Qt=new Set([this]):Qt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rv;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=mv.bind(null,e,t,n),t.then(e,e))}function Vu(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 Hu(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=kt(-1,1),t.tag=2,Bt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var iv=Et.ReactCurrentOwner,xe=!1;function ve(e,t,n,r){t.child=e===null?Ld(t,null,n,r):Hn(t,e.child,n,r)}function Ku(e,t,n,r,i){n=n.render;var o=t.ref;return zn(t,i),r=yl(e,t,n,r,o,i),n=Sl(),e!==null&&!xe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(H&&n&&sl(t),t.flags|=1,ve(e,t,r,i),t.child)}function qu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Nl(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ep(e,t,o,r,i)):(e=Mi(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:Mr,n(s,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=Ht(o,r),e.ref=t.ref,e.return=t,t.child=e}function ep(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Mr(o,r)&&e.ref===t.ref)if(xe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(xe=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return ca(e,t,n,r,i)}function tp(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(Tn,Ie),Ie|=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(Tn,Ie),Ie|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(Tn,Ie),Ie|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(Tn,Ie),Ie|=r;return ve(e,t,i,n),t.child}function np(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ca(e,t,n,r,i){var o=Pe(n)?cn:he.current;return o=Qn(t,o),zn(t,i),n=yl(e,t,n,r,o,i),r=Sl(),e!==null&&!xe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(H&&r&&sl(t),t.flags|=1,ve(e,t,n,i),t.child)}function Wu(e,t,n,r,i){if(Pe(n)){var o=!0;Yi(t)}else o=!1;if(zn(t,i),t.stateNode===null)Fi(e,t),Nd(t,n,r),la(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=Qe(u):(u=Pe(n)?cn:he.current,u=Qn(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)&&Uu(t,s,r,u),Dt=!1;var d=t.memoizedState;s.state=d,to(t,r,s,i),l=t.memoizedState,a!==r||d!==l||_e.current||Dt?(typeof c=="function"&&(aa(t,n,c,r),l=t.memoizedState),(a=Dt||Au(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 03:57:17 +02:00
*/var Gn=E.exports;function Rv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nv=typeof Object.is=="function"?Object.is:Rv,Iv=Gn.useState,Lv=Gn.useEffect,Dv=Gn.useLayoutEffect,jv=Gn.useDebugValue;function Fv(e,t){var n=t(),r=Iv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Dv(function(){i.value=n,i.getSnapshot=t,Os(i)&&o({inst:i})},[e,n,t]),Lv(function(){return Os(i)&&o({inst:i}),e(function(){Os(i)&&o({inst:i})})},[e]),jv(n),n}function Os(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nv(e,n)}catch{return!0}}function Tv(e,t){return t()}var bv=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Tv:Fv;Pp.useSyncExternalStore=Gn.useSyncExternalStore!==void 0?Gn.useSyncExternalStore:bv;(function(e){e.exports=Pp})(Fl);var Ao={exports:{}},Uo={};/**
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 03:57:17 +02:00
*/var Mv=E.exports,Av=Symbol.for("react.element"),Uv=Symbol.for("react.fragment"),zv=Object.prototype.hasOwnProperty,$v=Mv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bv={key:!0,ref:!0,__self:!0,__source:!0};function Cp(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)zv.call(t,r)&&!Bv.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:Av,type:e,key:o,ref:s,props:i,_owner:$v.current}}Uo.Fragment=Uv;Uo.jsx=Cp;Uo.jsxs=Cp;(function(e){e.exports=Uo})(Ao);const yn=Ao.exports.Fragment,k=Ao.exports.jsx,N=Ao.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 03:57:17 +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 qr=typeof window>"u";function Me(){}function Qv(e,t){return typeof e=="function"?e(t):e}function xa(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ep(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ai(e,t,n){return zo(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function jt(e,t,n){return zo(e)?[{...t,queryKey:e},n]:[e||{},t]}function lc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(zo(s)){if(r){if(t.queryHash!==Tl(s,t.options))return!1}else if(!co(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 uc(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(zo(o)){if(!t.options.mutationKey)return!1;if(n){if(an(t.options.mutationKey)!==an(o))return!1}else if(!co(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Tl(e,t){return((t==null?void 0:t.queryKeyHashFn)||an)(e)}function an(e){return JSON.stringify(e,(t,n)=>_a(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function co(e,t){return Rp(e,t)}function Rp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Rp(e[n],t[n])):!1}function Np(e,t){if(e===t)return e;const n=fc(e)&&fc(t);if(n||_a(e)&&_a(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]=Np(e[u],t[u]),s[u]===e[u]&&a++}return r===o&&a===r?e:s}return t}function cc(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _a(e){if(!dc(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!dc(n)||!n.hasOwnProperty("isPrototypeOf"))}function dc(e){return Object.prototype.toString.call(e)==="[object Object]"}function zo(e){return Array.isArray(e)}function Ip(e){return new Promise(t=>{setTimeout(t,e)})}function pc(e){Ip(0).then(e)}function Vv(){if(typeof AbortController=="function")return new AbortController}function Pa(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Np(e,t):t}class Hv extends ri{constructor(){super(),this.setup=t=>{if(!qr&&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 fo=new Hv;class Kv extends ri{constructor(){super(),this.setup=t=>{if(!qr&&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 03:57:17 +02:00
*/function pm(){return null}function ze(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 Yn(e){return!!e&&!!e[U]}function Ct(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)===xm}(e)||Array.isArray(e)||!!e[_c]||!!e.constructor[_c]||Ul(e)||zl(e))}function Jn(e,t,n){n===void 0&&(n=!1),rr(e)===0?(n?Object.keys:Hl)(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[U];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ul(e)?2:zl(e)?3:0}function Ea(e,t){return rr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hm(e,t){return rr(e)===2?e.get(t):e[t]}function Mp(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 gm(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ul(e){return km&&e instanceof Map}function zl(e){return Om&&e instanceof Set}function re(e){return e.o||e.t}function $l(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=_m(e);delete t[U];for(var n=Hl(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 Bl(e,t){return t===void 0&&(t=!1),Ql(e)||Yn(e)||!Ct(e)||(rr(e)>1&&(e.set=e.add=e.clear=e.delete=vm),Object.freeze(e),t&&Jn(e,function(n,r){return Bl(r,!0)},!0)),e}function vm(){ze(2)}function Ql(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ft(e){var t=Na[e];return t||ze(18,e),t}function mm(e,t){Na[e]||(Na[e]=t)}function ho(){return Gr}function xs(e,t){t&&(ft("Patches"),e.u=[],e.s=[],e.v=t)}function go(e){Ra(e),e.p.forEach(ym),e.p=null}function Ra(e){e===Gr&&(Gr=e.l)}function yc(e){return Gr={p:[],l:Gr,h:e,m:!0,_:0}}function ym(e){var t=e[U];t.i===0||t.i===1?t.j():t.O=!0}function _s(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ft("ES5").S(t,e,r),r?(n[U].P&&(go(t),ze(4)),Ct(e)&&(e=vo(t,e),t.l||mo(t,e)),t.u&&ft("Patches").M(n[U].t,e,t.u,t.s)):e=vo(t,n,[]),go(t),t.u&&t.v(t.u,t.s),e!==Ap?e:void 0}function vo(e,t,n){if(Ql(t))return t;var r=t[U];if(!r)return Jn(t,function(o,s){return Sc(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return mo(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=$l(r.k):r.o;Jn(r.i===3?new Set(i):i,function(o,s){return Sc(e,r,i,o,s,n)}),mo(e,i,!1),n&&e.u&&ft("Patches").R(r,n,e.u,e.s)}return r.o}function Sc(e,t,n,r,i,o){if(Yn(i)){var s=vo(e,i,o&&t&&t.i!==3&&!Ea(t.D,r)?o.concat(r):void 0);if(Mp(n,r,s),!Yn(s))return;e.m=!1}if(Ct(i)&&!Ql(i)){if(!e.h.F&&e._<1)return;vo(e,i),t&&t.A.l||mo(e,i)}}function mo(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Bl(t,n)}function Ps(e,t){var n=e[U];return(n?re(n):e)[t]}function wc(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 yt(e){e.P||(e.P=!0,e.l&&yt(e.l))}function Cs(e){e.o||(e.o=$l(e.t))}function Wr(e,t,n){var r=Ul(t)?ft("MapSet").N(t,n):zl(t)?ft("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:ho(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,u=Ia;s&&(l=[a],u=Sr);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return a.k=d,a.j=f,d}(t,n):ft("ES5").J(t,n);return(n?n.A:ho()).p.push(r),r}function Sm(e){return Yn(e)||ze(22,e),function t(n){if(!Ct(n))return n;var r,i=n[U],o=rr(n);if(i){if(!i.P&&(i.i<4||!ft("ES5").K(i)))return i.t;i.I=!0,r=kc(n,o),i.I=!1}else r=kc(n,o);return Jn(r,function(s,a){i&&hm(i.t,s)===a||Mp(r,s,t(a))}),o===3?new Set(r):r}(e)}function kc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return $l(e)}function wm(){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 03:57:17 +02:00
*/function Ze(){return Ze=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},Ze.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 Nm(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 Rc(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function Im(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],Rc(t.shift())):r[n]=Rc(t.shift());return r}const Lm=["children","location","__experimental__snapshot"],Dm=["location","__experimental__snapshot"],jm=["basepath","routes"],zp=E.exports.createContext(null),$p=E.exports.createContext(null),Bp=E.exports.createContext(null),Qp=Boolean(typeof window<"u"&&window.document&&window.document.createElement),Fa=Qp?E.exports.useLayoutEffect:E.exports.useEffect,Fm=()=>Qp?Em():Rm();class Kl{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 Tm extends Kl{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||Fm(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:Wm,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:qm,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=Ze({},this.current,n.from),l=Km(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=Lc(n.search,u))!=null?o:{}:(s=n.__searchFilters)!=null&&s.length?u:{},f=Ta(a.search,c),d=this.stringifySearch(f);let h=n.hash===!0?a.hash:Lc(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:Ta(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 Vp(e){return k($p.Provider,{...e})}function bm(e){let{children:t,location:n,__experimental__snapshot:r}=e,i=ja(e,Lm);const o=E.exports.useRef(null);o.current||(o.current=new Am({location:n,__experimental__snapshot:r,routes:i.routes}));const s=o.current,[a,l]=E.exports.useReducer(()=>({}),{});return s.update(i),Fa(()=>s.subscribe(()=>{l()}),[]),Fa(()=>s.updateLocation(n.current).unsubscribe,[n.current.key]),E.exports.createElement(zp.Provider,{value:{location:n}},E.exports.createElement(Bp.Provider,{value:{router:s}},k(Mm,{}),k(Vp,{value:[s.rootMatch,...s.state.matches],children:t!=null?t:k(Yp,{})})))}function Mm(){const e=ql(),t=Gp(),n=$m();return Fa(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class Am extends Kl{constructor(t){var n;let{location:r,__experimental__snapshot:i}=t,o=ja(t,Dm);super(),this.routesById={},this.update=a=>{let{basepath:l,routes:u}=a,c=ja(a,jm);Object.assign(this,c),this.basepath=Bo("/"+(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 03:57:17 +02:00
*/var Qo=E.exports,fy=Fl.exports;function dy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var py=typeof Object.is=="function"?Object.is:dy,hy=fy.useSyncExternalStore,gy=Qo.useRef,vy=Qo.useEffect,my=Qo.useMemo,yy=Qo.useDebugValue;th.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=gy(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=my(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,py(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=hy(e,o[0],o[1]);return vy(function(){s.hasValue=!0,s.value=a},[a]),yy(a),a};(function(e){e.exports=th})(eh);const Sy=hf(eh.exports),{useSyncExternalStoreWithSelector:wy}=Sy;function ky(e,t=e.getState,n){const r=wy(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return E.exports.useDebugValue(r),r}const bc=e=>{const t=typeof e=="function"?cy(e):e,n=(r,i)=>ky(t,r,i);return Object.assign(n,t),n},Oy=e=>e?bc(e):bc;var Wl=Oy;const xy=(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 Es(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 Es(h.state,y=>{f(y),u.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Es(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},_y=xy,Es=(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)}}}},Py=(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=wo(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 wo(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 Hy(e,t){return rh(e)||Vy(e,t)||ih(e,t)||oh()}function qc(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 Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qc(Object(n),!0).forEach(function(r){pt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ky=function(t,n){var r=E.exports.useRef();return E.exports.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function sh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=E.exports.useContext(Fy)||{},i=r.i18n,o=r.defaultNS,s=n||i||Uy();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new My),!s){Aa("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&&Aa("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=Rs(Rs(Rs({},by()),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 Qy(O,s,u)});function m(){return s.getFixedT(null,u.nsMode==="fallback"?d:d[0],f)}var y=E.exports.useState(m),w=Hy(y,2),v=w[0],p=w[1],g=d.join(),S=Ky(g),P=E.exports.useRef(!0);E.exports.useEffect(function(){var O=u.bindI18n,R=u.bindI18nStore;P.current=!0,!h&&!c&&Hc(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(M){return s.off(M,D)}),R&&s&&R.split(" ").forEach(function(M){return s.store.off(M,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){Hc(s,d,function(){O()})})}var qy="_1v2cc580";function Wy(){const{t:e}=sh(),{status:t,data:n}=gn([ba],Zp),[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:qy,children:[N("h1",{children:[e("title")," ",r," ",o," "]}),k(Ny,{className:"status-display"})]})}const He=Wl(Cy((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 pr="_11d5x3d1",Gy="_11d5x3d0",Vo="_11d5x3d2";function Yy(){const e=j(c=>c.isUsingFaceCorrection()),t=j(c=>c.isUsingUpscaling()),n=j(c=>c.getValueForRequestKey("use_upscale")),r=j(c=>c.getValueForRequestKey("show_only_filtered_image")),i=j(c=>c.toggleUseFaceCorrection),o=j(c=>c.setRequestOptions),s=He(c=>c.isOpenAdvImprovementSettings),a=He(c=>c.toggleAdvImprovementSettings),[l,u]=E.exports.useState(!1);retur
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.
`,M1={title:E1,description:R1,navbar:N1,"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:I1,"in-paint":{txt:"In-Painting (select the area which the AI will paint into)",clear:"Clear"},settings:L1,tags:D1,"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.
`,part3:`You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.
`,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:j1,history:F1,"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:T1,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:b1},A1={en:{translation:M1}};we.use(zy).init({lng:"en",interpolation:{escapeValue:!1},resources:A1});const U1=new Tm;function z1(){const e=W0;return k(bm,{location:U1,routes:[{path:"/",element:k(K0,{className:e})},{path:"/settings",element:k(q0,{className:e})}]})}const $1=new rm({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:1/0,cacheTime:1/0}}});wm();Is.createRoot(document.getElementById("root")).render(k(Of.StrictMode,{children:N(sm,{client:$1,children:[k(z1,{}),k(pm,{initialIsOpen:!0})]})}));